/* AIDB Papers - Frontend Styles */

.aidb-paper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
}

.aidb-paper-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.aidb-paper-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.aidb-paper-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.aidb-paper-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px;
    color: #111827;
}

.aidb-paper-meta {
    font-size: 14px;
    color: #6b7280;
}

.aidb-paper-meta-row {
    margin-bottom: 4px;
}

.aidb-paper-meta-label {
    font-weight: 600;
    color: #4b5563;
}

.aidb-paper-meta-separator {
    margin: 0 8px;
    color: #d1d5db;
}

.aidb-paper-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aidb-paper-tag {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 3px;
    color: #4b5563;
}

/* AI Disclaimer */
.aidb-paper-ai-disclaimer {
    margin: 0;
    padding: 12px 32px;
    background: #fffbeb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #92400e;
}

.aidb-paper-ai-disclaimer p {
    margin: 0;
}

/* Sections */
.aidb-paper-section {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.aidb-paper-section:last-child {
    border-bottom: none;
}

.aidb-paper-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6366f1;
    display: inline-block;
    color: #111827;
}

/* Summary */
.aidb-paper-summary {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
    background: #fafafa;
    padding: 16px 20px;
    border-left: 3px solid #6366f1;
    border-radius: 0 4px 4px 0;
}

.aidb-paper-points-list {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}

.aidb-paper-points-list li {
    margin-bottom: 6px;
}

.aidb-paper-points-list li:last-child {
    margin-bottom: 0;
}

/* Abstract */
.aidb-paper-abstract {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}


/* Link Buttons */
.aidb-paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aidb-paper-link-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity 0.2s;
    cursor: pointer;
    background: #6366f1;
    color: #fff;
    border: none;
}

.aidb-paper-link-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.aidb-paper-link-btn--secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.aidb-paper-link-btn--secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.aidb-paper-link-btn--premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.aidb-paper-link-btn--twitter {
    background: #000;
    color: #fff;
}

/* Related posts */
.aidb-paper-related {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aidb-paper-related li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.aidb-paper-related li:last-child {
    border-bottom: none;
}

.aidb-paper-related a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.aidb-paper-related a:hover {
    text-decoration: underline;
}

/* Premium CTA */
.aidb-paper-premium-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.aidb-paper-premium-box p {
    margin: 0 0 12px;
    font-weight: 600;
    color: #92400e;
}

.aidb-paper-premium-points {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}

.aidb-paper-premium-points li {
    padding: 4px 0;
    color: #92400e;
    font-weight: 500;
    font-size: 14px;
}

.aidb-paper-premium-points li::before {
    content: "\2713\0020";
    font-weight: 700;
}

/* Paper AI Chat Section */
.aidb-paper-chat-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.6;
}

/* Metadata */
.aidb-paper-dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    font-size: 14px;
}

.aidb-paper-dl dt {
    font-weight: 600;
    color: #4b5563;
}

.aidb-paper-dl dd {
    margin: 0;
    color: #6b7280;
}

.aidb-paper-dl dd a {
    color: #6366f1;
    text-decoration: none;
}

.aidb-paper-dl dd a:hover {
    text-decoration: underline;
}

/* Share */
.aidb-paper-share {
    text-align: center;
    padding: 24px 32px 32px;
}

/* Responsive */
@media (max-width: 640px) {
    .aidb-paper {
        padding: 10px;
    }

    .aidb-paper-header,
    .aidb-paper-section {
        padding: 20px 16px;
    }

    .aidb-paper-title {
        font-size: 20px;
    }

    .aidb-paper-links {
        flex-direction: column;
    }

    .aidb-paper-link-btn {
        text-align: center;
    }

    .aidb-paper-dl {
        grid-template-columns: 1fr;
    }
}
