/* ============================================
   CHART PATTERNS ARTICLE - CREATIVE ENHANCEMENTS
   Modern, Interactive, Premium Design
   ============================================ */

/* ===== MODERN HERO SECTION ===== */
.article-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0a0a0a 100%);
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201, 162, 39, 0.15), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.08), transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Animated chart pattern background */
.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(201, 162, 39, 0.03) 0px, transparent 1px, transparent 50px, rgba(201, 162, 39, 0.03) 51px),
        repeating-linear-gradient(0deg, rgba(201, 162, 39, 0.03) 0px, transparent 1px, transparent 50px, rgba(201, 162, 39, 0.03) 51px);
    opacity: 0.3;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.article-hero-content {
    position: relative;
    z-index: 10;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
    border: 2px solid rgba(201, 162, 39, 0.4);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #C9A227;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
    transition: all 0.3s ease;
}

.article-category:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(201, 162, 39, 0.5);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-title {
    animation: fadeInUp 1s ease-out 0.2s both;
    background: linear-gradient(135deg, #ffffff 0%, #C9A227 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: titleShimmer 3s linear infinite, fadeInUp 1s ease-out 0.2s both;
}

@keyframes titleShimmer {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-subtitle {
    animation: fadeIn 1s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.article-meta {
    animation: fadeIn 1s ease-out 0.6s both;
}

.article-meta span {
    position: relative;
    transition: all 0.3s ease;
}

.article-meta span:hover {
    color: #C9A227;
    transform: translateY(-2px);
}

/* ===== CREATIVE HOT TAKE BOX ===== */
.hot-take-box {
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hot-take-box {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(201, 162, 39, 0.1), rgba(139, 69, 19, 0.1));
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff4500, #C9A227, #8b4513) 1;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 69, 0, 0.2);
    transition: all 0.4s ease;
}

.hot-take-box::before {
    content: '🔥';
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 100px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hot-take-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3);
}

.hot-take-box h4 {
    color: #ff4500;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-take-box h4::before {
    content: '⚡';
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ===== ENHANCED CONTENT BOXES ===== */
.key-takeaway {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(232, 213, 163, 0.05));
    border: 2px solid rgba(201, 162, 39, 0.4);
    border-radius: 24px;
    padding: 40px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.2);
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.key-takeaway::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    transition: left 0.5s ease;
}

.key-takeaway:hover::before {
    left: 100%;
}

.key-takeaway h3 {
    color: #C9A227;
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.key-takeaway h3 i {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.key-takeaway ul li {
    position: relative;
    padding: 12px 0 12px 40px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.key-takeaway ul li:hover {
    background: rgba(201, 162, 39, 0.08);
    padding-left: 50px;
}

.key-takeaway ul li::before {
    content: '📊';
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

.key-takeaway ul li:hover::before {
    transform: scale(1.3) rotate(10deg);
}

/* ===== INSIGHT BOXES WITH GLASSMORPHISM ===== */
.insight-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.insight-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.insight-box.danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
}

.insight-box.success {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
}

.insight-box.warning {
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
}

.insight-box h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-box.danger h4 {
    color: #ef4444;
}

.insight-box.success h4 {
    color: #22c55e;
}

.insight-box.warning h4 {
    color: #fbbf24;
}

.insight-box h4 i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== ENHANCED FORMULA BOXES ===== */
.formula-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(79, 70, 229, 0.1));
    border: 3px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
}

.formula-box::before {
    content: '∑';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: rgba(139, 92, 246, 0.1);
    font-weight: 900;
    animation: rotate3d 10s linear infinite;
}

@keyframes rotate3d {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

.formula-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.4);
}

.formula-box h4 {
    color: #a78bfa;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.formula-box .formula {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 25px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin: 20px 0;
    text-align: center;
    font-weight: 700;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

/* ===== PREMIUM DATA TABLES ===== */
.data-table {
    margin: 45px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.data-table h4 {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(232, 213, 163, 0.2));
    padding: 20px 30px;
    margin: 0;
    color: #C9A227;
    font-size: 1.4rem;
    font-weight: 800;
}

.data-table table {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.data-table thead {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.3), rgba(167, 139, 250, 0.2));
}

.data-table th {
    padding: 20px 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C9A227;
    font-size: 0.95rem;
}

.data-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.data-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.data-table tbody tr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #C9A227, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.1);
    transform: scale(1.02);
}

.data-table tbody tr:hover::before {
    opacity: 1;
}

/* ===== STRATEGY BOXES ===== */
.strategy-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    padding: 40px;
    margin: 45px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(34, 197, 94, 0.2);
}

.strategy-box::before {
    content: '✓';
    position: absolute;
    bottom: -50px;
    right: -30px;
    font-size: 200px;
    color: rgba(34, 197, 94, 0.05);
    font-weight: 900;
    transform: rotate(-20deg);
}

.strategy-box h4 {
    color: #22c55e;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.strategy-box ul li {
    padding: 10px 0 10px 35px;
    position: relative;
}

.strategy-box ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 900;
    font-size: 1.3rem;
}

/* ===== COMPARISON COLUMNS ===== */
.comparison-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.column {
    padding: 35px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.column.danger-bg {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.column.success-bg {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08));
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.column:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.column h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.column.danger-bg h4 {
    color: #ef4444;
}

.column.success-bg h4 {
    color: #22c55e;
}

/* ===== CTA BOX ===== */
.cta-box {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 3px solid;
    border-image: linear-gradient(135deg, #C9A227, #8b5cf6, #3b82f6) 1;
    border-radius: 30px;
    padding: 60px;
    margin: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.8s ease-out;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-box h3 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #C9A227, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-btn-large {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    background: linear-gradient(135deg, #C9A227, #E8D5A3);
    color: #0a0a0a;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.4);
    transition: all 0.4s ease;
    border: none;
}

.cta-btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(201, 162, 39, 0.6);
    background: linear-gradient(135deg, #E8D5A3, #C9A227);
}

/* ===== SCROLL ANIMATIONS ===== */
.article-content h2,
.article-content h3 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.article-content p,
.article-content ul,
.article-content ol {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.05), transparent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.related-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    transition: left 0.5s ease;
}

.related-card:hover::before {
    left: 100%;
}

.related-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 20px 60px rgba(201, 162, 39, 0.3);
}

.related-category {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #C9A227;
    margin-bottom: 15px;
    font-weight: 600;
}

.related-card h3 {
    color: #ffffff;
    margin: 15px 0;
    font-size: 1.3rem;
}

.related-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .article-hero {
        min-height: 60vh;
    }

    .article-title {
        font-size: 2rem !important;
    }

    .key-takeaway,
    .insight-box,
    .formula-box,
    .strategy-box,
    .cta-box {
        padding: 25px !important;
    }

    .comparison-columns {
        grid-template-columns: 1fr;
    }

    .data-table {
        overflow-x: auto;
    }

    .hot-take-box::before {
        font-size: 60px;
        top: -20px;
    }
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(201, 162, 39, 0.3);
    color: #ffffff;
}