﻿/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-page {
    min-height: 100vh;
    background-color: #0f172b;
    display: flex;
    flex-direction: column;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(60px, 10vw, 80px) clamp(16px, 5vw, 24px) clamp(32px, 6vw, 40px);
    flex-grow: 1;
    width: 100%;
}

.content-body {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(24px, 5vw, 60px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.6s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.content-body:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.content-body h1 {
    font-family: var(--font-family-jakarta);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: clamp(24px, 4vw, 32px);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-body h2 {
    font-family: var(--font-family-jakarta);
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    color: var(--color-white);
    margin-top: clamp(32px, 5vw, 40px);
    margin-bottom: clamp(12px, 2vw, 16px);
    line-height: 1.3;
    opacity: 0;
    animation: slideInFromLeft 0.6s ease-out forwards;
    animation-delay: 0.3s;
    position: relative;
    padding-left: 16px;
}

.content-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary) 0%, #60a5fa 100%);
    border-radius: 2px;
}

.content-body h3 {
    font-family: var(--font-family-jakarta);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: var(--color-white);
    margin-top: clamp(20px, 3vw, 24px);
    margin-bottom: clamp(10px, 2vw, 12px);
    line-height: 1.4;
}

.content-body p, .content-body li {
    font-family: var(--font-family-inter);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.8;
    color: var(--color-text-subtle);
    margin-bottom: clamp(12px, 2vw, 16px);
}

.content-body ul {
    margin-left: clamp(16px, 3vw, 24px);
    margin-bottom: clamp(16px, 3vw, 24px);
}

.content-body li {
    margin-bottom: clamp(8px, 1.5vw, 12px);
    position: relative;
}

.content-body ul > li::marker {
    color: var(--color-primary);
}

.content-body a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
}

.content-body a:hover {
    color: #60a5fa;
    text-decoration: none;
}

.content-body a::after {
    content: 'â†’';
    margin-left: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    display: inline-block;
    transform: translateX(-5px);
}

.content-body a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.content-body strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .content-body {
        padding: clamp(20px, 5vw, 32px);
    }

    .content-body h2 {
        padding-left: 12px;
    }

    .content-body h2::before {
        width: 3px;
    }

    .content-body ul {
        margin-left: clamp(12px, 3vw, 16px);
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 48px 16px 24px;
    }

    .content-body {
        border-radius: 12px;
    }

    .content-body h1 {
        font-size: 24px;
    }

    .content-body h2 {
        font-size: 18px;
    }

    .content-body p,
    .content-body li {
        font-size: 14px;
        line-height: 1.7;
    }
}


/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #60a5fa 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

