@font-face {
    font-family: 'Baby Doll';
    src: url('/assets/fonts/Baby Doll.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'KGMakesYouStronger';
    src: url('/assets/fonts/KGMakesYouStronger.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Sketch Paper';
    src: url('/assets/fonts/Sketch Paper.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Sketch Paper', cursive, sans-serif;
    margin: 0;
    color: #ffffff;
    background-color: #121212;
    overflow-x: hidden;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #e0e0e0);
    z-index: 1001;
    transition: width 0.2s ease;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 0.7rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-nav {
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo-nav:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Baby Doll', cursive;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1.2rem;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    letter-spacing: 0.5px;
    z-index: 1;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: -1;
}

nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    transform: translateZ(0);
}

nav a:hover::before {
    width: 120px;
    height: 120px;
}

.dropdown > a::before {
    display: none !important;
}

.main-menu > li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 200px;
    z-index: 100;
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    opacity: 0;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Baby Doll', cursive;
}

.dropdown-menu li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding-left: 1.8rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    animation: none;
}

.main-menu > li:first-child .dropdown-menu {
    left: 0;
    transform: translateX(0);
}

.main-menu > li:last-child .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #ffffff;
}

.mobile-menu-close {
    display: none;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    animation: slowZoom 60s linear infinite;
}

@keyframes slowZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.blog-container {
    max-width: 1200px;
    margin: 8rem auto 2rem;
    padding: 0 2rem;
    flex: 1;
}

.blog-title {
    font-family: 'KGMakesYouStronger', cursive;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: 'Baby Doll', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.category-btn:hover {
    background: #ffffff;
    color: #121212;
    transform: translateY(-2px);
}

.category-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); 
    transform: none; 
}

.search-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(18, 18, 18, 0.8);
    transition: all 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 3rem; 
    border-radius: 50px;
    border: none; 
    background: transparent; 
    color: white;
    font-family: 'Sketch Paper', sans-serif;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    background: transparent;
}

.search-container:focus-within {
    border-color: #ffffff;
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), 
                0 0 20px rgba(255, 255, 255, 0.1); 
    transform: translateY(-2px); 
}

.search-container:focus-within .search-icon.left-icon {
    color: #ffffff; 
}

.search-icon.left-icon {
    position: absolute;
    left: 1rem; 
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5); 
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.5;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
}

.post-card:hover {
    transform: translateY(-5px); 
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5), 
        0 0 15px rgba(255, 255, 255, 0.1); 
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
}

.post-image[src=""] { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5));
    filter: grayscale(100%); 
}

.post-card:hover .post-image {
    transform: scale(1.03);
}

.post-content {
    padding: 1.8rem;
}

.post-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Baby Doll', cursive;
    text-transform: capitalize; 
}

.post-title {
    font-family: 'Baby Doll', cursive;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.read-more {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Baby Doll', cursive;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding-bottom: 3px;
}

.read-more:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    gap: 0.8rem;
}

.read-more::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.read-more::after {
    content: "→";
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

.loading-spinner {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: #ffffff;
    font-family: 'Baby Doll', cursive;
    font-size: 1.2rem;
}

.restriction-popup {
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%) translateY(100px); 
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px 20px;
    color: #ffffff;
    font-family: 'Sketch Paper', cursive, sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 2000; 
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.restriction-popup.theme-gold {
    background: linear-gradient(180deg, rgba(43, 35, 14, 0.9) 0%, rgba(22, 19, 12, 0.96) 100%);
    border: 1px solid rgba(255, 215, 0, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 215, 0, 0.08);
}

.restriction-popup.theme-white {
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.92) 0%, rgba(24, 24, 24, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), 0 0 18px rgba(255, 255, 255, 0.05);
}

.restriction-popup p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.restriction-popup-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    opacity: 0.9;
}

.restriction-popup-count {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.15rem;
    font-size: 0.82rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.restriction-popup.theme-gold .restriction-popup-icon,
.restriction-popup.theme-gold .restriction-popup-count {
    color: #ffd75a;
}

.restriction-popup.theme-gold .restriction-popup-count {
    background: rgba(255, 215, 0, 0.14);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.restriction-popup.theme-white .restriction-popup-icon,
.restriction-popup.theme-white .restriction-popup-count {
    color: #ffffff;
}

.restriction-popup.theme-white .restriction-popup-count {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.restriction-popup-count.show {
    opacity: 1;
    transform: scale(1);
}

.restriction-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); 
}

.restriction-popup.bump {
    animation: popupPulse 0.22s ease;
}

@keyframes popupPulse {
    0% {
        transform: translateX(-50%) translateY(2px) scale(0.985);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baby Doll', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.page-btn.active {
    background: #ffffff;
    color: #121212;
    font-weight: bold;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

footer {
    background: linear-gradient(to top, #0a0a0a 0%, #121212 100%);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%);
    margin: 2rem 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-tagline {
    font-family: 'Baby Doll', cursive;
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: left;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-social {
    flex: 1;
    min-width: 250px;
}

.social-title {
    font-family: 'Baby Doll', cursive;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 250px;
    margin: 0 auto;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-name {
    color: #ccc;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.social-item:hover .social-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.social-item:hover .social-icon img {
    filter: brightness(1);
}

.social-item:hover .social-name {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.disclaimer-highlight {
    color: #ffffff;
    font-family: 'Baby Doll', cursive;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.copyright {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.8rem;
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.footer-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 1.05rem;
    }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transition: right 0.4s ease;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .dropdown-menu {
        position: static;
        background: rgba(20, 20, 20, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        margin-top: 0.8rem;
        margin-left: 1.2rem;
        display: none;
        width: calc(100% - 2.4rem);
        transform: none;
        left: auto;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo-nav {
        height: 35px;
    }
    
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        color: #ffffff;
        transform: rotate(90deg);
    }

    .dropdown > a::before {
        display: none;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand, .footer-links {
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-container {
        margin: 7rem auto 2rem;
        padding: 0 1.5rem;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-nav {
        height: 32px;
    }
    
    nav {
        width: 85%;
        right: -85%;
    }

    .blog-container {
        padding: 0 1rem;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .post-card {
        border-radius: 10px;
    }

    .post-content {
        padding: 1.2rem;
    }

    .search-container {
        margin-bottom: 2rem;
    }

    .categories {
        margin-bottom: 2rem;
    }
}
