/* SOTA Blog Content Styles - Fluid Typography & Animation */
:root {
    --fluid-base: clamp(1rem, 2vw, 1.2rem);
    --fluid-h1: clamp(2.5rem, 5vw, 4rem);
    --fluid-h2: clamp(1.8rem, 3vw, 2.5rem);
    --fluid-h3: clamp(1.4rem, 2vw, 1.8rem);
    --fluid-spacing: clamp(1.5rem, 4vw, 3rem);
}

.sota-content {
    width: 100%;
    max-width: 720px;
    /* Optimal reading width */
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    /* Improved readability */
    color: #e0e0e0;
}

/* Staggered Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Silky smooth ease */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
.content-container h1 {
    font-size: var(--fluid-h1);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
    color: #ffd400;
    border-bottom: none;
    /* Cleaner look */
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.4;
    color: #a0a0a0;
    margin-top: -0.5em;
    margin-bottom: 2rem;
    max-width: 90%;
}

.category-tag {
    display: inline-block;
    background: rgba(255, 212, 0, 0.15);
    color: #ffd400;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 212, 0, 0.2);
}

.publish-date {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--fluid-spacing);
    font-family: 'JetBrains Mono', monospace;
    /* Tech feel */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Text Blocks */
.text-block {
    margin-bottom: var(--fluid-spacing);
    font-size: var(--fluid-base);
}

.text-block p {
    margin-bottom: 1.5em;
}

.text-block h1,
.text-block h2 {
    color: #fff;
    font-size: var(--fluid-h2);
    margin-top: 2.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-block h3 {
    color: #ffd400;
    font-size: var(--fluid-h3);
    margin-top: 2em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.text-block ul,
.text-block ol {
    margin-bottom: 2em;
    padding-left: 1.2em;
    color: #ccc;
}

.text-block li {
    margin-bottom: 0.8em;
    padding-left: 0.5em;
}

.text-block strong {
    color: #fff;
    font-weight: 600;
}

/* Media */
.sota-content img,
.sota-content video {
    width: 100%;
    height: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.sota-content img:hover {
    transform: scale(1.01);
}

/* Specialized Components */
.intro-message {
    background: linear-gradient(90deg, rgba(255, 212, 0, 0.05) 0%, transparent 100%);
    padding: 2rem;
    border-left: 3px solid #ffd400;
    font-size: 1.1rem;
    font-style: italic;
    color: #ddd;
    margin: 3rem 0;
    border-radius: 0 8px 8px 0;
}

.separator {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 4rem 0;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Fluid grid */
    gap: 1.5rem;
    margin: 3rem 0;
}

.topic-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
    border-color: rgba(255, 212, 0, 0.2);
}

.topic-item h4 {
    color: #ffd400;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.table-container {
    overflow-x: auto;
    margin: 3rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

th {
    background: rgba(255, 212, 0, 0.08);
    color: #ffd400;
    font-weight: 700;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 212, 0, 0.2);
    text-align: left;
}

td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.conclusion {
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.05), transparent);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 212, 0, 0.15);
    text-align: center;
    margin-top: 4rem;
}

/* Animation Keyframes (Fallback) */
@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }

    to {
        opacity: 1;
        visibility: visible;
    }
}

/* ============================================
   ENHANCED RESPONSIVE STYLES
   ============================================ */

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
    .sota-content {
        padding: 0 1rem;
    }

    .content-container h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-top: -0.5rem;
        margin-bottom: 0.75rem;
    }

    .category-tag {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .publish-date {
        font-size: 0.75rem;
        margin-bottom: 2rem;
    }

    .text-block {
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    .text-block h1,
    .text-block h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    .text-block h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .text-block p {
        margin-bottom: 1rem;
    }

    .sota-content img,
    .sota-content video {
        margin: 1.5rem auto;
        border-radius: 6px;
    }

    .intro-message {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .separator {
        margin: 2.5rem 0;
    }

    .visual-placeholder {
        height: 200px;
        margin-bottom: 2rem;
    }

    .topic-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .topic-item {
        padding: 1rem;
    }

    .topic-item h4 {
        font-size: 1rem;
    }

    .topic-item p {
        font-size: 0.85rem;
    }

    .table-container {
        margin: 1.5rem 0;
        border-radius: 6px;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    th {
        font-size: 0.75rem;
    }

    .conclusion {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
}

/* Tablet Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-container h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .text-block {
        font-size: 1.05rem;
    }

    .text-block h1,
    .text-block h2 {
        font-size: 1.6rem;
    }

    .topic-grid {
        gap: 1.5rem;
    }

    .conclusion {
        padding: 2rem;
    }
}

/* Small Mobile Devices (max 374px) */
@media (max-width: 374px) {
    .content-container h1 {
        font-size: 1.6rem;
    }

    .text-block {
        font-size: 0.9rem;
    }

    .filter-bar button {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .category-tag {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
}