/*
Theme Name: Alejandra Photography
Theme URI: https://alejandrasastoque.com
Author: Alejandra Sastoque
Description: A minimalist, high-end photography theme with WooCommerce support. Built with plain PHP, CSS, and JS.
Version: 1.0.0
Text Domain: ale-photography
*/

/* --- Core Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,900;1,400;1,900&display=swap');

:root {
    --ale-dark: #050505;
    --ale-light: #E6E6D6;
    --ale-white: #ffffff;
    --ale-black: #000000;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--ale-dark);
    color: var(--ale-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Light mode for mobile - matching React logic */
@media (max-width: 767px) {
    body {
        background-color: #ffffff;
        color: var(--ale-black);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
.font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.text-uppercase-bold {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-weight: 700;
    font-style: normal;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .navbar { padding: 0.75rem; }
    .navbar-container { 
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.5);
}

.nav-link:hover, .nav-link.active {
    color: var(--ale-white);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .nav-link { 
        color: rgba(0, 0, 0, 0.5); 
        font-size: 11px;
        padding: 0.4rem 0.6rem;
    }
    .nav-link:hover, .nav-link.active { color: var(--ale-black); }
    .nav-link.active { background: rgba(0, 0, 0, 0.05); }
}

/* --- Layout --- */
.pt-navbar {
    padding-top: 8rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1023px) {
    .grid-2 { grid-template-columns: 1fr; text-align: center; }
}

.hero-image-container {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 767px) {
    .collection-grid { grid-template-columns: 1fr; }
}

.collection-item {
    cursor: pointer;
}

.collection-thumb {
    aspect-ratio: 1/1;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.collection-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.collection-item:hover img {
    transform: scale(1.1);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background: var(--ale-white);
    color: var(--ale-black);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--ale-white);
}

@media (max-width: 767px) {
    .btn-primary { background: var(--ale-black); color: var(--ale-white); }
    .btn-outline { border: 1px solid rgba(0, 0, 0, 0.2); color: var(--ale-black); }
}

/* --- WooCommerce Support --- */
.woocommerce ul.products li.product .button {
    background-color: var(--ale-white) !important;
    color: var(--ale-black) !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.woocommerce span.onsale {
    background-color: var(--ale-white) !important;
    color: var(--ale-black) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
