/* ============================================
   Liviu Alexa Art - Main Stylesheet
   Design: Dark anthracite, minimal, gallery-focused
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #222222;
    --bg-tertiary: #2a2a2a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #c9a962;
    --accent-hover: #d4b872;
    --border: #333333;
    --error: #c94a4a;
    --success: #4ac962;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1400px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    flex: 1;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

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

/* --- Navigation --- */
.main-nav {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(30%);
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero-cta {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* --- Page Header --- */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Artwork Grid --- */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0 6rem;
}

.artwork-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    cursor: pointer;
}

.artwork-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity var(--transition);
}

.artwork-card:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(100%);
    transition: transform var(--transition);
}

.artwork-card:hover .artwork-info {
    transform: translateY(0);
}

.artwork-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.artwork-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.artwork-price {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--accent);
}

.artwork-sold {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- Single Artwork View --- */
.artwork-single {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    padding: 8rem 0 6rem;
    min-height: 100vh;
    align-items: start;
}

.artwork-image {
    position: sticky;
    top: 8rem;
}

.artwork-image img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.artwork-details h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.artwork-specs {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.artwork-specs p {
    margin: 0.8rem 0;
    display: flex;
    justify-content: space-between;
}

.artwork-specs span:first-child {
    color: var(--text-secondary);
}

.artwork-description {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.artwork-buy {
    margin-top: 3rem;
}

.price-display {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* --- About Section --- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 8rem 0;
    align-items: center;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

/* --- Exhibition Section --- */
.exhibition-featured {
    padding: 6rem 0;
    text-align: center;
}

.exhibition-date {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.exhibition-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.exhibition-location {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.exhibition-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* --- Contact Section --- */
.contact-section {
    padding: 8rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--accent);
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.lightbox-close:hover {
    opacity: 1;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .artwork-single {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .artwork-image {
        position: relative;
        top: 0;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform var(--transition);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding: 8rem 0 3rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
