/**
 * ATL SEO Blog Post Styles
 * 
 * Styles for blog post content elements
 * including TOC, FAQ, CTA, tables, etc.
 */

/* ========================================
   TABLE OF CONTENTS
   ======================================== */

.atl-toc-wrapper {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 2rem 0;
    color: white;
}

.atl-toc-header {
    margin-bottom: 1rem;
}

.atl-toc-header h2 {
    color: #C9A962;
    font-size: 1.25rem;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 700;
}

.atl-toc-nav {
    margin: 0;
    padding: 0;
}

.atl-toc-nav ol {
    margin: 0;
    padding-left: 1.5rem;
    counter-reset: toc-counter;
    list-style: none;
}

.atl-toc-nav li {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
    position: relative;
}

.atl-toc-nav li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: -1.5rem;
    color: #C9A962;
    font-weight: 600;
    font-size: 0.9rem;
}

.atl-toc-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.atl-toc-nav a:hover {
    color: #C9A962;
    transform: translateX(4px);
}

/* ========================================
   DIVIDER
   ======================================== */

.atl-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A962, transparent);
    margin: 3rem 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.atl-faq-wrapper {
    margin: 2rem 0;
}

.atl-faq-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.atl-faq-item:hover {
    border-color: #C9A962;
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.1);
}

.atl-faq-item[open] {
    border-color: #C9A962;
}

.atl-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0D1B2A;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.atl-faq-item summary::-webkit-details-marker {
    display: none;
}

.atl-faq-item summary::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f0f4f8;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 400;
    color: #0D1B2A;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.atl-faq-item[open] summary::after {
    content: "−";
    background: #C9A962;
    color: white;
}

.atl-faq-item summary:hover {
    color: #C9A962;
}

.atl-faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.atl-faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.atl-cta-wrapper {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
    border-radius: 20px;
    padding: 40px;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.atl-cta-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
    animation: ctaPulse 10s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.atl-cta-content {
    position: relative;
    z-index: 1;
}

.atl-cta-wrapper h3 {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    font-family: var(--font-heading);
}

.atl-cta-wrapper p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.atl-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.atl-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: #C9A962;
    color: #0D1B2A;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.atl-cta-primary:hover {
    background: #fff;
    color: #0D1B2A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

.atl-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.atl-cta-secondary:hover {
    border-color: #C9A962;
    color: #C9A962;
    transform: translateY(-3px);
}

.atl-cta-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.atl-cta-contact span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.atl-cta-contact strong {
    color: #C9A962;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.atl-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.atl-comparison-table thead {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
}

.atl-comparison-table th {
    padding: 16px 20px;
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atl-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: #444;
}

.atl-comparison-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.atl-comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.atl-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.atl-comparison-table tbody tr:nth-child(even):hover {
    background: #f0f4f8;
}

.atl-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.atl-comparison-table strong {
    color: #0D1B2A;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .atl-toc-wrapper {
        padding: 20px;
        margin: 1.5rem 0;
    }
    
    .atl-cta-wrapper {
        padding: 30px 20px;
    }
    
    .atl-cta-wrapper h3 {
        font-size: 1.4rem;
    }
    
    .atl-cta-buttons {
        flex-direction: column;
    }
    
    .atl-cta-primary,
    .atl-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .atl-comparison-table {
        font-size: 0.85rem;
    }
    
    .atl-comparison-table th,
    .atl-comparison-table td {
        padding: 12px 10px;
    }
    
    .atl-faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .atl-faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .atl-cta-wrapper {
        background: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .atl-cta-wrapper h3,
    .atl-cta-wrapper p {
        color: #333 !important;
    }
    
    .atl-cta-primary {
        background: #333 !important;
        color: white !important;
    }
}
