/* ============================================
   24SPBWater Redesigned Styles
   Color Palette: #0cd2b1, #0f8d99, #09496a, #1256b5, #0b1c71
   ============================================ */

:root {
    /* Color Palette */
    --primary: #0cd2b1;
    --primary-dark: #0f8d99;
    --secondary: #09496a;
    --accent: #1256b5;
    --dark: #0b1c71;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0cd2b1 0%, #0f8d99 50%, #09496a 100%);
    --gradient-secondary: linear-gradient(135deg, #1256b5 0%, #0b1c71 100%);
    --gradient-accent: linear-gradient(45deg, #0cd2b1, #1256b5);
    --gradient-glass: linear-gradient(135deg, rgba(12, 210, 177, 0.1) 0%, rgba(18, 86, 181, 0.1) 100%);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(11, 28, 113, 0.3);
    
    /* Typography */
    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --card-padding: 2rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Base Styles & Reset
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #0b1c71 0%, #09496a 50%, #0f8d99 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(12, 210, 177, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(18, 86, 181, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(15, 141, 153, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Reading Progress Bar
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(12, 210, 177, 0.5);
}

/* ============================================
   Glass Effect Base
   ============================================ */

.glass-effect, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.glass-effect::before, .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.glass-effect:hover::before, .glass-card:hover::before {
    left: 100%;
}

.glass-effect:hover, .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(11, 28, 113, 0.4);
    border-color: rgba(12, 210, 177, 0.3);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 28, 113, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: rgba(11, 28, 113, 0.95);
    border-bottom-color: rgba(12, 210, 177, 0.3);
    box-shadow: 0 4px 20px rgba(11, 28, 113, 0.3);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.nav-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(12, 210, 177, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.nav-brand:hover .logo-glow {
    opacity: 1;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
    transition: all var(--transition-normal);
}

.brand-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-secondary {
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.nav-link-bg {
    position: absolute;
    top: 0;
    left: -1rem;
    right: -1rem;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
    z-index: 1;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover .nav-link-bg {
    opacity: 0.2;
    transform: scale(1);
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: all var(--transition-normal);
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 210, 177, 0.1) 0%, rgba(18, 86, 181, 0.1) 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 80%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 60%;
    left: 30%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-btn:hover {
    transform: translateX(-5px);
    background: rgba(12, 210, 177, 0.2);
    border-color: rgba(12, 210, 177, 0.5);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   Ad Blocks
   ============================================ */

.ad-block {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-ad-top, .hero-ad-main {
    margin: 1rem 0;
}

.ad-container {
    margin: 4rem 0;
    padding: 0 2rem;
}

.ad-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.article {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Article Header
   ============================================ */

.article-header {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease;
}

.article-meta {
    margin-bottom: 2rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(12, 210, 177, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.author-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.author-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: 2px solid transparent;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-clip: border-box;
    -webkit-background-clip: border-box;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.author-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ============================================
   Article Description
   ============================================ */

.article-description {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.description-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.description-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.description-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.description-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================
   Article Content
   ============================================ */

.article-content {
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    margin: 2rem 0 1rem 0;
    color: #ffffff;
    font-weight: 600;
}

.article-content h2 {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(11, 28, 113, 0.3);
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(11, 28, 113, 0.4);
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.article-content a:hover {
    color: #ffffff;
    border-bottom-color: var(--primary);
}

/* ============================================
   Reactions Section
   ============================================ */

.reactions-section {
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.reactions-header {
    margin-bottom: 2rem;
}

.reactions-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.reactions-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.reactions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.reaction-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.reaction-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.reaction-emoji {
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.reaction-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
}

.reaction-count {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(12, 210, 177, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 30px;
    transition: all var(--transition-normal);
}

.reaction-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(12, 210, 177, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.reaction-ripple.animate {
    width: 200px;
    height: 200px;
}

.reaction-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(12, 210, 177, 0.5);
    box-shadow: 0 12px 40px rgba(11, 28, 113, 0.4);
}

.reaction-btn:hover .reaction-emoji {
    transform: scale(1.2) rotate(10deg);
}

.reaction-btn:hover .reaction-label {
    color: #ffffff;
}

.reaction-btn.reacted {
    background: rgba(12, 210, 177, 0.2);
    border-color: var(--primary);
    animation: reactionSuccess 0.6s var(--bounce);
}

.reaction-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.reaction-btn.loading .reaction-emoji {
    animation: pulse 1s infinite;
}

@keyframes reactionSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reaction-message {
    display: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInUp 0.3s ease;
}

.reaction-message.success {
    background: rgba(12, 210, 177, 0.2);
    color: var(--primary);
    border: 1px solid rgba(12, 210, 177, 0.3);
}

.reaction-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ============================================
   Related Articles
   ============================================ */

.related-section {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    padding: 2rem;
    border-radius: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.related-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: all var(--transition-normal);
}

.related-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
}

.related-meta svg {
    width: 14px;
    height: 14px;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1;
}

.related-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.related-card:hover .card-glow {
    opacity: 0.1;
}

.related-card:hover .related-title {
    color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    margin-top: 4rem;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0b1c71 0%, #09496a 50%, #0f8d99 100%);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(12, 210, 177, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(18, 86, 181, 0.1) 0%, transparent 50%);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.footer-brand:hover .footer-logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.footer-link:hover {
    background: rgba(12, 210, 177, 0.2);
    border-color: rgba(12, 210, 177, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-normal);
}

.footer-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.footer-contact a:hover {
    color: #ffffff;
}

/* ============================================
   Image Popup
   ============================================ */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 28, 113, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.popup-overlay.active {
    opacity: 1;
}

.popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 2rem;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-image {
    max-width: 100%;
    max-height: calc(90vh - 4rem);
    border-radius: 12px;
    object-fit: contain;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 28, 113, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .nav-link-bg {
        border-radius: 12px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content,
    .article-description,
    .reactions-section {
        padding: 2rem;
    }
    
    .author-card {
        padding: 1.5rem;
    }
    
    .reactions-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 30vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .article-content,
    .article-description,
    .reactions-section {
        padding: 1.5rem;
    }
    
    .author-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .reactions-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .reaction-btn {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .popup-container {
        padding: 1rem;
    }
    
    .popup-image {
        max-height: calc(90vh - 2rem);
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .back-btn,
    .reactions-section,
    .footer,
    .popup-overlay,
    .ad-block,
    .ad-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .article-title,
    .section-title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .article-content p,
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4,
    .article-content h5,
    .article-content h6 {
        color: black !important;
    }
}

/* ============================================
   High Contrast Mode
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.8);
    }
    
    .glass-card,
    .glass-effect {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .article-title,
    .section-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: #ffffff;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none;
    }
    
    .avatar-ring {
        animation: none;
    }
    
    .hero-particles {
        display: none;
    }
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */

*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link:focus,
.back-btn:focus,
.reaction-btn:focus,
.footer-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* ============================================
   Dark Mode Support (if needed)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 28, 113, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   Selection Styles
   ============================================ */

::selection {
    background: rgba(12, 210, 177, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(12, 210, 177, 0.3);
    color: #ffffff;
}