/* Koruri Font Definition - Stable Loading */
@font-face {
    font-family: 'KoruriFont';
    src: url('/static/fonts/Koruri-Regular.ttf') format('truetype');
    font-display: block;
    font-weight: normal;
    font-style: normal;
    unicode-range: U+3040-309F, U+30A0-30FF, U+4E00-9FAF, U+FF00-FFEF;
}

/* Prevent font switching flash */
body {
    visibility: hidden;
}

body.font-ready {
    visibility: visible;
}

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

body {
    font-family: 'KoruriFont', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #111827;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: #1f2937;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid #374151;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #60a5fa;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-link span {
    font-size: 0.95rem;
}

/* Main content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #581c87 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #60a5fa;
}

.btn-secondary:hover {
    background: #60a5fa;
    color: #111827;
}

/* Page sections */
.intro, .highlights, .about-content, .contact-content {
    padding: 80px 0;
    background: #111827;
}

.page-header {
    background: #1f2937;
    padding: 60px 0 40px 0;
    text-align: center;
    border-bottom: 1px solid #374151;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f9fafb;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
}

/* Grid layouts */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.highlight-item {
    background: #1f2937;
    border: 1px solid #374151;
    padding: 40px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: #4b5563;
}

.highlight-item h3 {
    color: #60a5fa;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.highlight-item p {
    color: #d1d5db;
}

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.about-text h2, .about-text h3 {
    color: #f9fafb;
    margin-bottom: 20px;
}

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

.about-text h3 {
    font-size: 1.5rem;
    margin-top: 40px;
}

.about-text p {
    color: #d1d5db;
}


/* Computer specifications */
.computers-list {
    margin-top: 20px;
    width: 100%;
}

.computer-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.computer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.computer-header:hover {
    background: #374151;
}

.computer-item h4 {
    color: #60a5fa;
    margin: 0;
    font-size: 1.2rem;
}

.collapse-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.collapse-icon.rotated {
    transform: rotate(90deg);
}

.computer-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 20px 20px;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.computer-specs.collapsed {
    max-height: 0;
    padding: 0 20px;
    margin: 0;
    border-top: none;
}

.computer-description {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    font-style: italic;
    border-bottom: 1px solid #374151;
    padding-bottom: 12px;
}

.spec-item {
    color: #d1d5db;
    font-size: 0.95rem;
}

.spec-item strong {
    color: #f9fafb;
    min-width: 50px;
    display: inline-block;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid #374151;
}


/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info-centered {
    display: flex;
    justify-content: center;
}

.contact-info-centered .contact-info {
    max-width: 600px;
    text-align: center;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-btn svg {
    width: 40px;
    height: 40px;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Platform specific colors */
.misskey-btn {
    background: #86b300;
    color: white;
}

.misskey-btn:hover {
    background: #9dd000;
}

.discord-btn {
    background: #5865f2;
    color: white;
}

.discord-btn:hover {
    background: #4752c4;
}

.github-btn {
    background: #24292e;
    color: white;
}

.github-btn:hover {
    background: #1b1f23;
}

.contact-info h2 {
    color: #f9fafb;
    margin-bottom: 20px;
}

.contact-info p {
    color: #d1d5db;
}

.contact-methods {
    margin-top: 40px;
}

.contact-method {
    margin-bottom: 30px;
}

.contact-method h3 {
    color: #f9fafb;
    margin-bottom: 10px;
}

.contact-method a {
    color: #60a5fa;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
    color: #93c5fd;
}

/* Form styles */
.contact-form h2 {
    color: #f9fafb;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d1d5db;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #4b5563;
    border-radius: 5px;
    font-size: 1rem;
    background: #1f2937;
    color: #e5e7eb;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

/* Footer */
footer {
    background: #0f172a;
    color: #d1d5db;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #374151;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .social-links {
        gap: 20px;
        padding: 40px 20px;
    }
    
    .social-btn {
        width: 60px;
        height: 60px;
    }
    
    .social-btn svg {
        width: 30px;
        height: 30px;
    }
    
    
    .highlight-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .intro, .highlights, .about-content, .contact-content, .links-content, .test-content {
        padding: 60px 0;
    }
    
    .links-grid {
        gap: 20px;
        margin-top: 40px;
    }
    
    .banner-image {
        max-width: 150px;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Test page and banners */
.test-content {
    padding: 80px 0;
    background: #111827;
}

.banners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

.banner-showcase {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.banner-showcase:hover {
    transform: translateY(-3px);
    border-color: #4b5563;
}

.banner-info {
    margin-bottom: 25px;
}

.banner-info h3 {
    color: #f9fafb;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.banner-description {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 15px;
}

.banner-actions {
    margin-top: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
}

.banner-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.banner-usage {
    margin-top: 80px;
    background: #1f2937;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #374151;
}

.banner-usage h2 {
    color: #f9fafb;
    margin-bottom: 20px;
    font-size: 2rem;
}

.banner-usage p {
    color: #d1d5db;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.banner-usage ul {
    color: #d1d5db;
    padding-left: 20px;
}

.banner-usage li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Links page */
.links-content {
    padding: 80px 0;
    background: #111827;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.link-card {
    display: block;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: #4b5563;
}

.link-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #f9fafb;
    transition: color 0.3s ease;
}

.link-card:hover .link-info h3 {
    color: #60a5fa;
}

.link-name {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.link-banner {
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #374151;
    background: #1f2937;
}

.banner-placeholder {
    width: 100%;
    max-width: 200px;
    height: 80px;
}


.link-actions {
    margin-top: 20px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f9fafb;
}

.empty-state p {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Banner section in links page */
.banner-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #374151;
}

.banner-section h2 {
    color: #f9fafb;
    margin-bottom: 20px;
    font-size: 2rem;
}

.banner-section p {
    color: #d1d5db;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.banner-display {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    background: #111827;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #374151;
}

.banner-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

.banner-preview svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.banner-download {
    text-align: center;
    min-width: 200px;
}

.banner-download p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-buttons .btn {
    width: 100%;
    text-align: center;
}

/* Error page */
.error-content {
    padding: 80px 0;
    background: #111827;
}

.error-message {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    color: #f87171;
}

.error-icon svg {
    width: 100%;
    height: 100%;
}

.error-message p {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Access Counter Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #4b5563;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.counter-text {
    color: #e5e7eb;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.counter-text span {
    color: #60a5fa;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 8px;
}

/* Modal responsive */
@media (max-width: 480px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 25px;
    }
    
    .counter-text {
        font-size: 1.1rem;
    }
    
    .counter-text span {
        font-size: 1.8rem;
    }
}

/* Blog Styles */
.blog-content {
    padding: 40px 0;
}

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-card-item {
    height: 100%;
}

.blog-card-link {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.blog-card-link:hover {
    transform: translateY(-3px);
    border-color: #60a5fa;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.15);
}

.blog-card-header {
    margin-bottom: 15px;
}

.blog-card-title {
    color: #e5e7eb;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.blog-card-link:hover .blog-card-title {
    color: #60a5fa;
}

.blog-card-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #9ca3af;
}

.blog-date {
    color: #d1d5db;
}

.blog-author {
    color: #a78bfa;
    font-weight: 500;
}

.blog-author::before {
    content: "by ";
    color: #9ca3af;
    font-weight: normal;
}

.blog-card-summary {
    margin-bottom: 15px;
    color: #d1d5db;
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-card-summary p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-card-tag {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.blog-card-link:hover .blog-card-tag {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-posts h3 {
    color: #d1d5db;
    margin-bottom: 10px;
}

/* Blog Post Content */
.blog-post-content {
    padding: 40px 0;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #374151;
}

.post-author {
    color: #a78bfa;
    font-weight: 500;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: #374151;
    color: #e5e7eb;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid #4b5563;
}

.post-content {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #e5e7eb;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #60a5fa;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
    margin-top: 0;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #374151;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    background: #374151;
    border-left: 4px solid #60a5fa;
    margin: 20px 0;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    color: #d1d5db;
    font-style: italic;
}

.post-content code {
    background: #374151;
    color: #fbbf24;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #111827;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #374151;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.post-content a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #93c5fd;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #374151;
    border-radius: 8px;
    overflow: hidden;
}

.post-content th,
.post-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #4b5563;
}

.post-content th {
    background: #4b5563;
    color: #60a5fa;
    font-weight: 600;
}


/* Post Navigation Buttons */
.post-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-btn-prev,
.nav-btn-next {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.nav-btn-prev:hover,
.nav-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.nav-btn-blog {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.nav-btn-blog:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.nav-btn-disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.5;
}

.post-navigation {
    margin-top: 40px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-link {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

    .blog-card-meta {
        flex-direction: column;
        gap: 6px;
    }

    .post-nav-buttons {
        gap: 12px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .post-content {
        padding: 25px;
    }


    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-link {
        padding: 18px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .post-nav-buttons {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Admin Dashboard */
.admin-content {
    padding: 40px 0;
    background: linear-gradient(135deg, #0f1419 0%, #111827 100%);
    min-height: 80vh;
}

.admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-section {
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border: 1px solid #4b5563;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
}

.stats-section h3 {
    color: #f9fafb;
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 1px solid #6b7280;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    border-color: #60a5fa;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(96, 165, 250, 0.2);
}

.stat-value {
    color: #60a5fa;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #e5e7eb;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-table {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #4b5563;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.analytics-table table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-table th,
.analytics-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #6b7280;
}

.analytics-table th {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #60a5fa;
}

.analytics-table td {
    color: #e5e7eb;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.analytics-table tr:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    transform: scale(1.01);
}

.analytics-table tr:nth-child(even) {
    background: rgba(75, 85, 99, 0.3);
}

.analytics-table tr:nth-child(even):hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

/* Admin responsive */
@media (max-width: 768px) {
    .admin-content {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-section {
        padding: 25px;
        margin-bottom: 30px;
    }

    .stats-section h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .analytics-table th,
    .analytics-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .analytics-table th {
        font-size: 0.8rem;
    }
}

