/**
 * Fictioneer Notifier extra-chapter styles.
 * Version: 7.7.0
 */

/* Story Page Badge */
.fcn-extra-chapters-badge {
    margin: 1.5rem 0;
}

.fcn-extra-chapters-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: var(--layout-border-radius-small, 4px);
    color: #1a1a1a !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.fcn-extra-chapters-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
    color: #1a1a1a !important;
}

.fcn-extra-chapters-icon {
    font-size: 1.25rem;
    color: #7c2d12;
}

.fcn-extra-chapters-text {
    flex: 1;
    font-weight: 700;
    color: #1a1a1a !important;
}

.fcn-extra-chapters-cta {
    padding: 0.5rem 1rem;
    background: #7c2d12;
    color: #fff !important;
    border-radius: var(--layout-border-radius-small, 4px);
    font-size: 0.875rem;
    font-weight: 600;
}

.fcn-extra-chapters-link:hover .fcn-extra-chapters-cta {
    background: #9a3412;
}

/* Card Badge */
.fcn-card-extra-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.fcn-card-extra-badge i {
    color: #fbbf24;
    font-size: 0.65rem;
}

/* Full Box Style */
.fcn-extra-chapters-box {
    border: 2px solid var(--primary-500, #6366f1);
    border-radius: var(--layout-border-radius-small, 4px);
    overflow: hidden;
    margin: 1.5rem 0;
}

.fcn-extra-chapters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-500, #6366f1) 0%, var(--primary-600, #4f46e5) 100%);
    color: #fff;
    font-weight: 700;
}

.fcn-extra-chapters-header i {
    color: #fbbf24;
}

.fcn-extra-chapters-content {
    padding: 1rem;
    background: var(--e-1, #fff);
}

.fcn-extra-chapters-content p {
    margin: 0 0 0.75rem;
}

.fcn-extra-subscribe-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--primary-500, #6366f1);
    color: #fff !important;
    border-radius: var(--layout-border-radius-small, 4px);
    font-weight: 600;
    text-decoration: none;
}

.fcn-extra-subscribe-btn:hover {
    background: var(--primary-600, #4f46e5);
    color: #fff;
}

/* Inline Style */
.fcn-extra-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-500, #6366f1);
    font-weight: 600;
}

.fcn-extra-inline i {
    color: #fbbf24;
}

/* Summary Widget */
.fcn-extra-summary {
    border: 1px solid var(--layout-color-linework, #e5e7eb);
    border-radius: var(--layout-border-radius-small, 4px);
    overflow: hidden;
    background: var(--e-1, #fff);
    color: var(--fg-500, #333);
}

.fcn-extra-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary-500, #6366f1) 0%, var(--primary-600, #4f46e5) 100%);
    color: #fff;
    font-weight: 600;
}

.fcn-extra-summary-header i {
    color: #fbbf24;
}

.fcn-extra-summary-title {
    flex: 1;
}

.fcn-extra-summary-total {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    font-size: 0.875rem;
}

.fcn-extra-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fcn-extra-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--e-0, #f9fafb);
    color: inherit;
    border-bottom: 1px solid var(--layout-color-linework, #e5e7eb);
}

.fcn-extra-summary-list li:last-child {
    border-bottom: none;
}

.fcn-extra-summary-list a {
    color: inherit;
    text-decoration: none;
}

.fcn-extra-summary-list a:hover {
    color: var(--primary-500, #6366f1);
}

.fcn-extra-count {
    padding: 0.25rem 0.5rem;
    background: var(--primary-500, #6366f1);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.fcn-extra-subscribe-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--e-0, #f9fafb);
    color: var(--primary-500, #6366f1);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--layout-color-linework, #e5e7eb);
}

.fcn-extra-subscribe-link:hover {
    background: var(--primary-500, #6366f1);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .fcn-extra-chapters-link {
        flex-wrap: wrap;
    }

    .fcn-extra-chapters-cta {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}
