@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff87;
    --primary-dark: #00cc6a;
    --secondary: #7c3aed;
    --accent: #f97316;
    --dark: #0a0a0a;
    --dark-light: #141414;
    --dark-card: #1a1a1a;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --gradient-1: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --gradient-2: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
    --gradient-3: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    --glow: 0 0 40px rgba(0, 255, 135, 0.3);
    --glow-accent: 0 0 40px rgba(249, 115, 22, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 135, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 20s infinite;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 10, 10, 0.95);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.nav-cta {
    background: var(--gradient-1);
    color: var(--dark);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.nav-links a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(0, 255, 135, 0.5);
}

.nav-links a.nav-cta::before {
    display: none;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: var(--dark-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* ===== LIGHT THEME ===== */
body.light-theme {
    --dark: #f5f5f7;
    --dark-light: #e5e5e7;
    --dark-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
}

body.light-theme::before {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 135, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
}

body.light-theme .navbar {
    background: rgba(245, 245, 247, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .navbar.scrolled {
    background: rgba(245, 245, 247, 0.98);
}

body.light-theme .mobile-menu-btn span {
    background: var(--text);
}

body.light-theme .theme-toggle {
    background: var(--dark-light);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .post-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .post-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 60px rgba(0, 255, 135, 0.1);
}

body.light-theme .auth-card,
body.light-theme .editor-form,
body.light-theme .about-text,
body.light-theme .posts-table,
body.light-theme .empty-state {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .form-group input[type="text"],
body.light-theme .form-group input[type="email"],
body.light-theme .form-group input[type="password"],
body.light-theme .form-group textarea {
    background: var(--dark-light);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .footer {
    background: var(--dark-light);
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .ql-toolbar {
    background: var(--dark-light) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .ql-container {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #editor {
    background: var(--dark-light);
}

body.light-theme .ql-snow .ql-stroke {
    stroke: var(--text-muted) !important;
}

body.light-theme .ql-snow .ql-fill {
    fill: var(--text-muted) !important;
}

body.light-theme .ql-snow .ql-picker {
    color: var(--text-muted) !important;
}

body.light-theme .ql-snow .ql-picker-options {
    background: var(--dark-card) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .posts-table th {
    background: var(--dark-light);
}

body.light-theme .posts-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .page-loader {
    background: var(--dark);
}

body.light-theme .loader {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
}

body.light-theme ::-webkit-scrollbar-track {
    background: var(--dark);
}

body.light-theme ::-webkit-scrollbar-thumb {
    background: var(--dark-light);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 135, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    animation: expandWidth 1s ease 1s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes expandWidth {
    to { transform: scaleX(1); }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--dark);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(0, 255, 135, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* ===== POSTS SECTION ===== */
.posts-section {
    padding: 6rem 0;
}

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

.section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

/* ===== POST CARD ===== */
.post-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cardEntry 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }

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

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 135, 0.1);
    border-color: rgba(0, 255, 135, 0.2);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card-image {
    height: 200px;
    background: var(--gradient-3);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.post-card-image:not(.has-image)::after {
    content: '⚽';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.2;
    transition: all 0.5s ease;
}

.post-card:hover .post-card-image:not(.has-image)::after {
    transform: translate(-50%, -50%) scale(1.2) rotate(20deg);
    opacity: 0.4;
}

.post-card-image.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-card:hover .post-card-image.has-image::before {
    opacity: 1;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card:hover h2 a {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.read-more:hover::after {
    transform: translateX(5px);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ===== SINGLE POST ===== */
.single-post {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 120px;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h1, .post-content h2, .post-content h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin: 2.5rem 0 1rem;
}

.post-content h2 {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(0, 255, 135, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
}

.post-content pre {
    background: var(--dark-light);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-color: var(--primary);
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
    margin-top: 3rem;
    padding-bottom: 4rem;
}

.back-link a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--primary);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.auth-card {
    background: var(--dark-card);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: cardEntry 0.6s ease forwards;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.auth-card h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    padding: 1rem 1.25rem;
    background: var(--dark-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ===== EDITOR PAGE ===== */
.editor-page {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 4rem;
}

.editor-page h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editor-form {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#editor {
    height: 450px;
    background: var(--dark-light);
    border-radius: 0 0 12px 12px;
    color: var(--text);
}

.ql-toolbar {
    border-radius: 12px 12px 0 0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: var(--dark-light) !important;
}

.ql-container {
    border-color: rgba(255, 255, 255, 0.1) !important;
    font-size: 1rem !important;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: normal !important;
}

.ql-snow .ql-stroke {
    stroke: var(--text-muted) !important;
}

.ql-snow .ql-fill {
    fill: var(--text-muted) !important;
}

.ql-snow .ql-picker {
    color: var(--text-muted) !important;
}

.ql-snow .ql-picker-options {
    background: var(--dark-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 255, 135, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.upload-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.upload-hint {
    font-size: 0.85rem;
    opacity: 0.6;
}

.image-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

body.light-theme .image-upload-area {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .image-upload-area:hover,
body.light-theme .image-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(0, 255, 135, 0.08);
}

/* ===== MY POSTS ===== */
.my-posts-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 120px;
    padding-bottom: 4rem;
}

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

.page-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
}

.posts-table {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th,
.posts-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.posts-table th {
    background: var(--dark-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.posts-table tr:last-child td {
    border-bottom: none;
}

.posts-table tr {
    transition: background 0.3s ease;
}

.posts-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.posts-table a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.posts-table a:hover {
    opacity: 0.8;
}

.posts-table .actions {
    display: flex;
    gap: 0.75rem;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.published {
    background: rgba(0, 255, 135, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.status-badge.draft {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--dark-card);
    border-radius: 20px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== ABOUT PAGE ===== */
.about-page {
    padding-top: 120px;
    padding-bottom: 4rem;
}

.about-page h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    position: sticky;
    top: 120px;
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient-3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0.1;
}

.about-text {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--dark-light);
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

/* ===== ERROR PAGE ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-page h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 12rem;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: none; }
    25% { text-shadow: -3px 0 var(--accent); }
    50% { text-shadow: 3px 0 var(--secondary); }
    75% { text-shadow: -3px 0 var(--primary); }
}

.error-page p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 1rem 0 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Mobile Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        position: relative;
    }

    .logo {
        font-size: 1.4rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a.nav-cta {
        margin-top: 1rem;
        text-align: center;
        padding: 1rem;
    }

    .theme-toggle {
        margin-top: 1.5rem;
        align-self: flex-start;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.light-theme .nav-links {
        background: var(--dark-card);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }

    body.light-theme .nav-links a {
        border-bottom-color: rgba(0, 0, 0, 0.05);
    }

    /* Mobile Hero */
    .hero {
        min-height: auto;
        padding: 7rem 1rem 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Posts */
    .posts-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-card {
        border-radius: 16px;
    }

    .post-card-image {
        height: 150px;
    }

    .post-card-content {
        padding: 1.25rem;
    }

    .post-card h2 {
        font-size: 1.25rem;
    }

    /* Mobile Single Post */
    .single-post {
        padding-top: 100px;
    }

    .post-header h1 {
        font-size: 1.75rem;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-actions {
        flex-direction: column;
    }

    .post-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile About */
    .about-page {
        padding-top: 100px;
    }

    .about-page h1 {
        font-size: 2.5rem;
    }

    .about-content {
        gap: 2rem;
    }

    .about-image {
        max-width: 200px;
    }

    .avatar-placeholder {
        font-size: 5rem;
    }

    .about-text {
        padding: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Mobile Auth */
    .auth-page {
        padding: 5rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 2rem;
    }

    /* Mobile Editor */
    .editor-page {
        padding-top: 100px;
    }

    .editor-page h1 {
        font-size: 2rem;
    }

    .editor-form {
        padding: 1.5rem;
    }

    #editor {
        height: 300px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile My Posts */
    .my-posts-page {
        padding-top: 100px;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .posts-table {
        overflow-x: auto;
        border-radius: 12px;
    }

    .posts-table th,
    .posts-table td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .posts-table .actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Mobile Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }

    .btn-small {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Mobile Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Mobile Error Page */
    .error-page h1 {
        font-size: 6rem;
    }

    .error-page p {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .post-card h2 {
        font-size: 1.1rem;
    }

    .single-post {
        padding-top: 90px;
    }

    .post-header h1 {
        font-size: 1.5rem;
    }

    .about-page h1 {
        font-size: 2rem;
    }

    .auth-card h1 {
        font-size: 1.75rem;
    }

    .editor-page h1 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .post-card:hover {
        transform: none;
        box-shadow: none;
    }

    .post-card:active {
        transform: scale(0.98);
    }

    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.95);
    }

    .nav-links a:hover::before {
        width: 0;
    }
}

/* ===== ANIMATIONS ON SCROLL ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
