@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent: #00ff88;
    --accent-hover: #00cc6a;
    --accent-dim: rgba(0, 255, 136, 0.1);
    --border: #222222;
    --shadow: rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-2: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 106, 0.1) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mouse Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Admin pages - normal cursor */
body.admin-page,
body.admin-page * {
    cursor: auto !important;
}

body.admin-page #particleCanvas {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 136, 0.1);
    border-bottom-color: rgba(0, 255, 136, 0.2);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.logo-bracket {
    color: var(--accent);
    font-size: 1.8rem;
}

.logo-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-text {
    transform: translateY(-2px);
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.admin-link {
    font-size: 1.2rem;
    color: var(--accent) !important;
}

.lang-btn {
    background: var(--accent) !important;
    color: var(--bg-primary) !important;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 204, 106, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite, float 15s ease-in-out infinite;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) translateZ(0); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.2) translateZ(0); 
    }
}

@keyframes float {
    0%, 100% { 
        background-position: 0% 50%, 100% 50%; 
    }
    50% { 
        background-position: 100% 50%, 0% 50%; 
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-tag,
.hero-tag-close {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-tertiary);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-tag { animation-delay: 0.2s; }
.hero-tag-close { animation-delay: 1.2s; margin-top: 1rem; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    margin: 2rem 0;
    color: var(--text-primary);
    letter-spacing: -3px;
    line-height: 1;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}

.glitch {
    position: relative;
    text-shadow: 
        0 0 10px var(--accent),
        0 0 20px var(--accent),
        0 0 40px var(--accent);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2.5s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { 
        transform: translate(0);
        text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 40px var(--accent);
    }
    20% { 
        transform: translate(-5px, 5px);
        text-shadow: 5px -5px 0 #00ffff, -5px 5px 0 #ff00ff;
    }
    40% { 
        transform: translate(-5px, -5px);
        text-shadow: 5px 5px 0 #00ffff, -5px -5px 0 #ff00ff;
    }
    60% { 
        transform: translate(5px, 5px);
        text-shadow: -5px -5px 0 #00ffff, 5px 5px 0 #ff00ff;
    }
    80% { 
        transform: translate(5px, -5px);
        text-shadow: -5px 5px 0 #00ffff, 5px -5px 0 #ff00ff;
    }
}

@keyframes glitch-2 {
    0%, 100% { 
        transform: translate(0);
        opacity: 0.8;
    }
    20% { 
        transform: translate(5px, -5px);
        opacity: 0.9;
    }
    40% { 
        transform: translate(5px, 5px);
        opacity: 0.7;
    }
    60% { 
        transform: translate(-5px, -5px);
        opacity: 0.9;
    }
    80% { 
        transform: translate(-5px, 5px);
        opacity: 0.8;
    }
}

.subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    min-height: 60px;
}

.typing-text {
    color: var(--accent);
    font-weight: 600;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--bg-elevated);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.social-btn:hover::before {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.social-btn:hover i {
    color: #000;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Section Styling */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Photo */
.profile-photo-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 3rem;
    z-index: 2;
}

.profile-photo,
.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo-placeholder {
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-secondary);
}

.profile-photo-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--accent), #00d4ff, var(--accent));
    opacity: 0.3;
    z-index: 1;
    animation: rotateBorder 4s linear infinite;
}

.profile-photo-container:hover .profile-photo,
.profile-photo-container:hover .profile-photo-placeholder {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 255, 136, 0.4);
}

.profile-photo-container:hover .profile-photo-border {
    opacity: 0.6;
    animation: rotateBorder 2s linear infinite;
}

.profile-photo-container {
    perspective: 800px;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Code Window */
.code-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.window-header {
    background: var(--bg-elevated);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.code-keyword { color: #ff79c6; }
.code-var { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-string { color: #f1fa8c; }

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    transform: translateZ(0);
}

.post-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.post-card:hover::before {
    opacity: 1;
}

.post-card:hover::after {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

.post-card:hover {
    border-color: var(--accent);
    box-shadow: 
        0 20px 60px rgba(0, 255, 136, 0.3),
        0 0 30px rgba(0, 255, 136, 0.1),
        inset 0 0 20px rgba(0, 255, 136, 0.05);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.post-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.post-image-slider {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.post-image-slider .post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.post-image-slider .post-image.active {
    opacity: 1;
    z-index: 1;
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.post-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.post-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.post-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all-wrapper {
    text-align: center;
    margin-top: 4rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s ease;
}

.view-all-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: 8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Admin Panel */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.login-box h2 {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-box input {
    padding: 1.2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.login-box button {
    padding: 1.2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.error-msg {
    color: #ff4444;
    margin-top: 1rem;
}

.back-home {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent);
    text-decoration: none;
}

/* Admin Panel */
.admin-panel {
    padding: 4rem 0;
    min-height: 70vh;
}

.admin-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.admin-nav-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.admin-nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.admin-nav-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.admin-nav-btn .badge {
    background: #ff5f56;
    color: white;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

/* Admin Sections */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-actions {
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 1.2rem 2.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.post-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 4rem;
}

.post-form h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.post-form input {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.post-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.editor-toolbar {
    margin-bottom: 1rem;
}

.toolbar-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#editor {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    min-height: 400px;
    margin-bottom: 2rem;
}

.ql-toolbar {
    background: var(--bg-elevated) !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 10px 10px 0 0 !important;
}

.ql-container {
    border: none !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
}

.ql-editor {
    min-height: 350px;
    color: var(--text-primary) !important;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn-success {
    padding: 1.2rem 2.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-cancel {
    padding: 1.2rem 2.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    border-color: var(--accent);
}

.posts-management h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.admin-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.admin-post-item:hover {
    border-color: var(--accent);
}

.post-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-delete {
    padding: 1rem 2rem;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .nav-links a::before {
        display: none;
    }
    
    .nav-links a.active {
        color: var(--accent);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .profile-photo-container {
        width: 180px;
        height: 180px;
    }
    
    .code-content code {
        font-size: 0.75rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .logo-bracket {
        font-size: 1.4rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .post-detail {
        padding: 4rem 0;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comment.reply {
        margin-left: 1rem;
    }
    
    .post-reactions {
        justify-content: center;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Post Detail Page */
.post-detail {
    padding: 6rem 0;
    min-height: 70vh;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-header .post-category {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-tertiary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.post-body {
    max-width: 900px;
    margin: 0 auto;
}

.post-content-html {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.post-content-html p {
    margin-bottom: 1.5rem;
}

.post-content-html h1,
.post-content-html h2,
.post-content-html h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.post-content-html strong {
    color: var(--accent);
    font-weight: 700;
}

.post-content-html a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content-html img {
    max-width: 100%;
    border-radius: 15px;
    margin: 2rem 0;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--accent);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.lightbox .close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 1.5rem;
    font-size: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.1);
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* Search Box Styling */
.search-box {
    max-width: 700px;
    margin: 3rem auto 0;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

.search-box form {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-box button {
    padding: 1.2rem 2rem;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--bg-primary);
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Contact Page Enhancements */
.contact-section {
    padding: 6rem 0;
    min-height: 70vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.contact-item .icon {
    font-size: 1.3rem;
    color: var(--accent);
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 12px;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    word-break: break-all;
    position: relative;
    z-index: 2;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.image-count {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* Settings Form */
.settings-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-of-type {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    color: var(--accent);
}

.settings-section textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.settings-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.social-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-input i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-input input {
    flex: 1;
    margin-bottom: 0 !important;
}

.stats-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.btn-secondary {
    padding: 1.2rem 2.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Performance optimizations */
.post-card,
.stat-item,
.contact-item,
.admin-post-item {
    will-change: transform;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Additional GPU Accelerated Effects */
.social-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.social-btn:hover {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.3);
    }
}

.stat-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.stat-item:hover {
    animation: float-up 2s ease-in-out infinite;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.code-window {
    transform: translateZ(0);
    backface-visibility: hidden;
    animation: code-glow 3s ease-in-out infinite;
}

@keyframes code-glow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 20px 80px rgba(0, 255, 136, 0.1), 0 0 30px rgba(0, 255, 136, 0.05);
    }
}

/* Smooth scroll with GPU */
html {
    scroll-behavior: smooth;
    transform: translateZ(0);
}

/* Button hover effects */
.btn-primary,
.btn-success,
.view-all-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-success::before,
.view-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-success:hover::before,
.view-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Logo animation */
.logo:hover {
    animation: logo-glitch 0.3s ease;
}

@keyframes logo-glitch {
    0%, 100% {
        transform: translate(0);
    }
    25% {
        transform: translate(-2px, 2px);
    }
    50% {
        transform: translate(2px, -2px);
    }
    75% {
        transform: translate(-2px, -2px);
    }
}

/* Section line animation */
.section-line {
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

/* Contact item hover effect */
.contact-item {
    transform: translateZ(0);
    backface-visibility: hidden;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.contact-item:hover::before {
    left: 100%;
}

/* Performance optimization for all animated elements */
.post-card,
.stat-item,
.social-btn,
.btn-primary,
.btn-success,
.contact-item,
.admin-post-item,
.code-window,
.navbar {
    will-change: transform;
}


/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.settings-tab {
    display: none;
}

.settings-tab.active {
    display: block;
}

.settings-section label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.settings-section label:first-of-type {
    margin-top: 0;
}

/* Profile Photo Upload */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-photo-preview i {
    font-size: 3rem;
    color: var(--text-secondary);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn,
.remove-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn {
    background: var(--accent);
    color: var(--bg-primary);
}

.upload-btn:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.remove-btn {
    background: #ff5f56;
    color: white;
}

.remove-btn:hover {
    background: #ff3b30;
    transform: translateY(-2px);
}

/* Color Preview */
.color-preview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.preview-box {
    padding: 2rem;
    border-radius: 10px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.preview-box h3 {
    margin-bottom: 1rem;
}

.preview-box button {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    border: none;
    font-weight: 600;
}

/* Like / Dislike */
.post-reactions {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.like-btn:hover { color: #00ff88; border-color: #00ff88; }
.dislike-btn:hover { color: #ff5f56; border-color: #ff5f56; }

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.comments-section h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.comments-section h2 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comment-form h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    box-sizing: border-box;
}

.comment-form textarea {
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-submit-btn {
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.comment-submit-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.comment {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-admin {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.comment.reply {
    margin-left: 2rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--accent);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-admin .comment-author {
    color: var(--accent);
}

.comment-admin .comment-author i {
    color: gold;
}

.admin-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0;
    transition: opacity 0.3s;
}

.reply-btn:hover { opacity: 0.7; }

.reply-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.no-comments {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

/* Post content images */
.post-content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Admin post actions */
.admin-post-item .post-actions {
    display: flex;
    gap: 0.5rem;
}

/* Comment admin actions */
.comment-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-action-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.comment-action-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.comment-action-btn.danger:hover {
    border-color: #ff5f56;
    color: #ff5f56;
}

.comment-action-btn.warn:hover {
    border-color: #ffbd2e;
    color: #ffbd2e;
}

.comment-meta-admin {
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: help;
}

.email-note {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: -0.5rem 0 1rem;
}

.email-note i {
    color: var(--accent);
    margin-right: 0.3rem;
}

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sort-bar span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sort-btn:hover, .sort-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Post Stats Bar */
.post-stats-bar {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-stats-bar span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-stats-bar i {
    font-size: 0.8rem;
    color: var(--accent);
}

/* Log Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.log-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.log-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.log-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Admin Mobile */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
    }
    .admin-nav-btn {
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    .admin-post-item {
        flex-direction: column;
        gap: 1rem;
    }
    .admin-post-item .post-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    .settings-tabs {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions button {
        width: 100%;
    }
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .sort-bar {
        gap: 0.3rem;
    }
    .sort-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    .post-form {
        padding: 1rem;
    }
    .admin-panel h1 {
        font-size: 1.8rem;
    }
    .ql-toolbar {
        flex-wrap: wrap;
    }
    .editor-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .profile-photo-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    .social-input {
        flex-direction: column;
    }
    .social-input i {
        display: none;
    }
    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .contact-item {
        padding: 1rem;
    }
    .contact-item .icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
}

/* Instagram-style Comments */
.ig-comment {
    margin-bottom: 1.2rem;
}

.ig-comment-main {
    display: flex;
    gap: 0.8rem;
}

.ig-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
}

.ig-avatar-admin {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.1);
    color: gold;
    font-size: 0.8rem;
    overflow: hidden;
}

.ig-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ig-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.8rem;
}

.ig-comment-body {
    flex: 1;
    min-width: 0;
}

.ig-comment-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ig-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.ig-author-admin {
    color: var(--accent);
}

.ig-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.ig-admin-tools {
    display: inline-flex;
    gap: 0.4rem;
    margin-left: auto;
}

.ig-admin-tools i {
    color: var(--text-secondary);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s;
}

.ig-admin-tools i:hover {
    color: var(--accent);
}

.ig-admin-tools i.fa-trash:hover,
.ig-admin-tools i.fa-ban:hover {
    color: #ff5f56;
}

.ig-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.3rem 0;
}

.ig-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
}

.ig-actions button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
    transition: color 0.2s;
}

.ig-actions button:hover {
    color: var(--text-primary);
}

.ig-toggle-replies {
    color: var(--accent) !important;
}

.ig-replies {
    margin-top: 0.8rem;
    padding-left: 0;
}

.ig-reply {
    margin-bottom: 0.8rem;
}

.ig-reply-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.ig-reply-row textarea {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    resize: none;
    min-height: 36px;
    box-sizing: border-box;
}

.ig-reply-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.ig-send-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.ig-send-btn:hover {
    transform: scale(1.1);
}

.reply-form {
    margin-top: 0.8rem;
}

.reply-form input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    box-sizing: border-box;
    font-size: 0.85rem;
}

/* Notification Badge */
.admin-link {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5f56;
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: badgePulse 2s ease-in-out infinite;
}

.has-notification i {
    animation: cogGlow 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes cogGlow {
    0%, 100% { color: var(--accent); }
    50% { color: #ff5f56; text-shadow: 0 0 10px rgba(255, 95, 86, 0.5); }
}

/* Unread message */
.msg-unread {
    background: rgba(0, 255, 136, 0.05);
    animation: unreadGlow 3s ease-in-out infinite;
}

@keyframes unreadGlow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.15); }
}
