/* ========================================
   НОВЫЙ ДИЗАЙН В СТИЛЕ CASINOENCHILE.AI
   ======================================== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: #fbbf24;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.5);
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 18px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-menu > li > a:hover::before {
    transform: scaleX(1);
}

.nav-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-width: 260px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    border-radius: 12px;
    margin-top: 8px;
    z-index: 1001;
    padding: 8px;
    backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

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

.dropdown-content a {
    color: #ffffff;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Authentication */
.header-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-register:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.user-icon {
    font-size: 22px;
}

.username {
    font-weight: 600;
    font-size: 15px;
}

.user-menu .dropdown-content {
    right: 0;
    left: auto;
    min-width: 200px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-home {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

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

.hero-home::after {
    content: '🎰 ♠️ ♥️ ♦️ ♣️ 🎲 🃏 🎯';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    opacity: 0.05;
    white-space: nowrap;
    pointer-events: none;
    animation: floatSymbols 20s linear infinite;
}

@keyframes floatSymbols {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(to right, #ffffff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(251, 191, 36, 0.5);
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CATEGORIES SHOWCASE
   ======================================== */

.categories-showcase {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header-center {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.section-desc {
    font-size: 1.3rem;
    color: #64748b;
    margin-top: 24px;
}

.categories-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.category-card-home {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card-home::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
}

.category-card-home:hover {
    transform: translateY(-16px);
    box-shadow: 0 24px 50px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.category-card-home:hover::before {
    opacity: 0.06;
}

.category-card-home:hover::after {
    opacity: 1;
    top: -20%;
    right: -20%;
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s;
    position: relative;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.category-card-home:hover .category-icon-wrapper {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.category-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.category-card-home h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.cat-count {
    color: #667eea;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cat-arrow {
    display: inline-block;
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.4s;
    position: relative;
    z-index: 1;
}

.category-card-home:hover .cat-arrow {
    transform: translateX(12px);
    color: #764ba2;
}

/* ========================================
   FEATURED ARTICLES
   ======================================== */

.featured-home {
    padding: 100px 0;
    background: #ffffff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.featured-large {
    grid-column: span 2;
    grid-row: span 2;
}

.featured-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s;
    border: 3px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.featured-card:hover::before {
    transform: scaleY(1);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.featured-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.featured-card h3 {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.featured-large h3 {
    font-size: 2rem;
}

.featured-card h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-card h3 a:hover {
    color: #667eea;
}

.featured-read {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
    font-size: 1rem;
}

.featured-read span {
    transition: transform 0.3s;
}

.featured-read:hover {
    gap: 1rem;
    color: #764ba2;
}

.featured-read:hover span {
    transform: translateX(4px);
}

/* ========================================
   CATEGORY SECTIONS
   ======================================== */

.category-section {
    padding: 80px 0;
}

.section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.section-header-flex h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-header-flex p {
    color: #64748b;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 2px solid #667eea;
    border-radius: 12px;
    background: transparent;
}

.view-all-link:hover {
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.article-preview {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 5px solid transparent;
    position: relative;
}

.article-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}

.article-preview:hover::before {
    opacity: 1;
}

.article-preview:hover {
    transform: translateX(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-left-color: #667eea;
}

.article-preview h3 {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.article-preview h3 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.article-preview h3 a:hover {
    color: #667eea;
}

.preview-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-link:hover {
    color: #764ba2;
    gap: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 80px 0 30px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    line-height: 1.8;
    color: #94a3b8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-section a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    transition: transform 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
    transform: translateX(8px);
}

.footer-section a:hover::before {
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin: 0;
}

/* Disclaimer */
.footer-disclaimer {
    background: rgba(251, 191, 36, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid #fbbf24;
    position: relative;
    z-index: 1;
}

.footer-disclaimer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.footer-disclaimer strong {
    color: #fbbf24;
    font-weight: 700;
}

/* ========================================
   ARTICLE & CATEGORY PAGES
   ======================================== */

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.article-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #667eea;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin: 2rem 0 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.1rem;
    color: #475569;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    line-height: 1.9;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: #475569;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background: #f8fafc;
}

.breadcrumbs-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.breadcrumbs-list li::after {
    content: '›';
    font-weight: 700;
    color: #94a3b8;
}

.breadcrumbs-list li:last-child::after {
    display: none;
}

.breadcrumbs-list a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.breadcrumbs-list a:hover {
    color: #764ba2;
}

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

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: 16px;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 8px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .categories-grid-home,
    .featured-grid,
    .category-articles-grid {
        grid-template-columns: 1fr;
    }

    .featured-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-auth {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-login,
    .btn-register {
        flex: 1;
        text-align: center;
    }

    .user-menu {
        width: 100%;
    }

    .user-link {
        justify-content: center;
    }

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

    .article-content {
        padding: 24px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Loading Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}
