/*
Theme Name: HotAsianXX
Theme URI: https://hotasian.gallery/
Author: Antigravity
Author URI: https://google.com/
Description: Premium aesthetic photography gallery theme for Hot Asian Girls.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotasianxx
*/

/* Design System & Base Styles */
:root {
    --bg-color: #0d0d0f;
    --card-bg: #1a1a1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent: #ff3e4e;
    --accent-glow: rgba(255, 62, 78, 0.3);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-color: #f7f7f9;
    --card-bg: #ffffff;
    --text-primary: #121214;
    --text-secondary: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

/* Utilities */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-primary);
    text-decoration: none;
}

.ad-banner-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ad-placeholder {
    width: 720px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-style: dashed;
    border-width: 2px;
}

@media (max-width: 768px) {
    .ad-placeholder {
        width: 320px;
        height: 50px;
    }
}

.logo span {
    color: var(--accent);
}

.nav-search {
    flex: 0 1 400px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.6rem 3rem 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: white;
    outline: none;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-search {
        flex: 1;
        margin: 0 1.5rem;
        max-width: 300px;
    }

    .search-input-wrapper input {
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo span {
        display: inline;
    }

    .nav-search {
        margin: 0 0.8rem;
        flex: 1;
    }

    .search-input-wrapper input {
        padding-right: 2rem;
    }

    .search-btn {
        right: 0.8rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.theme-toggle {
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 0;
    transform: scale(0.5) rotate(90deg);
}

.moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body.light-mode .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* Hero Section */
.hero {
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, var(--card-bg) 0%, var(--bg-color) 100%);
    padding: 2rem;
}

body.light-mode .hero h1 {
    background: linear-gradient(to right, #121214, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a0a0ab);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* Category Section */
.category-section {
    padding-top: 4rem !important;
    padding-bottom: 0 !important;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 0.8rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-chip:hover,
.category-chip.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Sections */
.section-container {
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title span {
    color: var(--accent);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.view-all-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass);
}

.view-all-link:hover {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateX(5px);
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -4rem;
}

.album-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 3/4;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover img {
    transform: scale(1.1);
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.album-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.album-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.album-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

/* Masonry Layout for Gallery */
.masonry-gallery {
    columns: 4;
    column-gap: 1rem;
    padding: 1rem 0;
}

.masonry-item {
    margin-bottom: 1rem;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .masonry-gallery {
        columns: 3;
    }
}

@media (max-width: 800px) {
    .masonry-gallery {
        columns: 2;
    }
}

@media (max-width: 500px) {
    .masonry-gallery {
        columns: 1;
    }
}

/* 404 Error Page */
.error-404-container {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-404-content {
    padding: 5rem;
    margin-top: 10rem;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, var(--accent), #ff8e98);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.error-title span {
    color: var(--accent);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.error-search {
    max-width: 400px;
    margin: 0 auto;
}

.category-chip a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.category-chip:hover a,
.category-chip.active a {
    color: white;
}

/* Related Albums Section */
.related-albums-section {
    margin-top: 8rem;
    margin-bottom: 6rem;
}

.related-albums-section .section-title {
    margin-bottom: 4rem;
    text-align: center;
}
