/* 
   AI E-commerce Portfolio - Core Styles
   Focus: Minimalist Aesthetic, High-Performance Transitions
*/

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

:root {
    --bg-color: #F9F9F8;
    --text-primary: #2C2C2C;
    --text-secondary: #6B6B6B;
    --accent-color: #E5E1DA; /* Soft beige for subtle accents */
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Logo & Nav Styling */
#logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.nav-link {
    transition: all 0.3s ease;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    border-bottom-color: var(--text-primary);
}

/* Detail Page Grid (Optimized for alignment) */
#category-gallery {
    column-count: 2;
    column-gap: 2rem;
}

@media (min-width: 1024px) {
    #category-gallery {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Footer & QR Codes */
footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.qr-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

/* Mobile Sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    backdrop-blur: 4px;
    transition: opacity 0.4s ease;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 70;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-open .mobile-sidebar {
    transform: translateX(0);
}

.mobile-nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.mobile-nav-link.active {
    opacity: 1;
    font-weight: 600;
}

/* Hamburger Button */
.burger-btn {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
    z-index: 80;
}

.burger-line {
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

body.sidebar-open .burger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.sidebar-open .burger-line:nth-child(2) { opacity: 0; }
body.sidebar-open .burger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Performance Optimized Animations */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInAnimation 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Skeleton Placeholder */
.skeleton {
    background: #EEEEEE;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #E0E0E0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #CCCCCC; }

/* Lightbox */
#lightbox { transition: opacity 0.5s ease; }
#lightbox-img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

/* Notification Bell & Red Dot */
.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}
.notification-btn:hover {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.1);
}
.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #F9F9F8;
}

/* Base Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 40px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.changelog-item {
    border-left: 1px solid rgba(0,0,0,0.05);
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}
.changelog-version {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.changelog-date {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    margin-bottom: 8px;
    display: block;
}
.changelog-desc {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.6;
}
.changelog-list {
    margin-top: 10px;
    font-size: 0.75rem;
    opacity: 0.5;
    padding-left: 0;
    list-style: none;
}
.changelog-list li {
    margin-bottom: 4px;
}
