/* assets/style.css - The Core Engine */
:root {
    --primary: #9333ea;
    --dark: #0a0a0b;
    --grey: #888;
    --light: #f5f5f7;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body { 
    font-family: 'Outfit', sans-serif; 
    overflow-x: hidden; 
    background: #fff; 
    color: var(--dark); 
    line-height: 1.6;
    cursor: none; /* Hide default cursor */
}

a, button, input, textarea { cursor: none; }

/* --- 1. Custom Cursor --- */
#cursor {
    width: 30px; /* Increased from 15px */
    height: 30px; /* Increased from 15px */
    background: var(--primary);
    border-radius: 50%; 
    position: fixed; 
    pointer-events: none;
    z-index: 9999; 
    mix-blend-mode: difference; 
    transition: transform 0.15s ease-out, opacity 0.2s;
    left: 0; top: 0;
}

/* --- 2. Navigation --- */
.luxury-nav {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    padding: 20px 8%; 
    display: flex; justify-content: space-between; align-items: center;
    background: var(--glass); 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo { 
    display: flex; align-items: center; gap: 10px; 
    text-decoration: none; color: var(--dark);
}
.logo img { height: 40px; }
.logo span { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    text-decoration: none; color: var(--dark); 
    font-weight: 600; font-size: 0.85rem; 
    text-transform: uppercase; letter-spacing: 0.5px;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0%; height: 1px;
    bottom: -5px; left: 0; background: var(--primary);
    transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* --- 3. Animation Engine --- */
.reveal { 
    opacity: 1; transform: translateY(0); transition: var(--transition); 
}
body.js-loaded .reveal { 
    opacity: 0; transform: translateY(40px); 
}
body.js-loaded .reveal.active { 
    opacity: 1; transform: translateY(0); 
}

/* --- 4. Sections & Components --- */
.luxury-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}
.luxury-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 60px; padding: 0 8%;
}
.section-header h2 { font-family: 'Syne'; font-size: 3rem; line-height: 1; }
.section-header p { color: var(--grey); max-width: 300px; margin-top: 10px; }

/* Quote Section */
.quote-section {
    background: var(--dark); color: white;
    padding: 150px 8%; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.quote-text {
    font-family: 'Syne'; font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2; margin-bottom: 30px; max-width: 1000px;
}

/* Footer */
.luxury-footer {
    background: #fff; padding: 100px 8% 40px; border-top: 1px solid #eee;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px;
    margin-bottom: 80px;
}
.footer-brand p { color: var(--grey); margin-top: 20px; max-width: 300px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 25px; font-family: 'Syne'; }
.footer-links a { display: block; text-decoration: none; color: var(--grey); margin-bottom: 12px; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-contact p { color: var(--grey); margin-bottom: 12px; }
.copyright {
    text-align: center; color: #ccc; font-size: 0.8rem;
    padding-top: 40px; border-top: 1px solid #f5f5f5;
}

/* Art Grid shared styles */
.art-masonry { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); 
    gap: 40px; 
    padding: 0 8% 120px; 
    justify-content: center; /* This centers the grid items */
}
.card-img-wrap { 
    width: 100%; height: 450px; overflow: hidden; border-radius: 12px; margin-bottom: 20px; 
}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.art-card:hover img { transform: scale(1.1); }
.art-info h3 { font-size: 1.5rem; margin-bottom: 5px; font-family: 'Syne'; }
.art-info p { color: var(--grey); font-size: 0.9rem; }

/* --- Append to assets/style.css --- */

/* 5. SINGLE ART MODAL (Popup) */
.art-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    z-index: 2000; opacity: 0; pointer-events: none;
    transition: 0.4s ease; display: flex; align-items: center; justify-content: center;
}
.art-modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-content {
    width: 90%; max-width: 1200px; height: 90vh;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    background: transparent; align-items: center; overflow-y: auto;
}

/* Modal Image Side */
.modal-image-col { 
    height: 100%; display: flex; align-items: center; justify-content: center; 
}
.modal-image-col img { 
    max-height: 85vh; max-width: 100%; box-shadow: 20px 20px 60px rgba(0,0,0,0.1); 
    border-radius: 4px; object-fit: contain;
}

/* Modal Text Side */
.modal-text-col { padding-right: 50px; }
.back-btn { 
    position: absolute; top: 40px; left: 5%; 
    font-size: 0.9rem; cursor: pointer; color: var(--grey); 
    display: flex; align-items: center; gap: 10px; z-index: 2001;
}
.back-btn:hover { color: var(--dark); }

.modal-title { font-family: 'Syne'; font-size: 4rem; line-height: 1; margin-bottom: 20px; }
.modal-meta { 
    display: flex; gap: 20px; color: var(--grey); font-size: 0.9rem; 
    margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 20px; 
}
.modal-desc { font-size: 1.1rem; color: #555; margin-bottom: 60px; line-height: 1.8; }
.modal-price-label { font-family: 'Syne'; font-size: 1.2rem; margin-bottom: 15px; display: block; }

/* Mobile Responsive for Modal */
@media (max-width: 900px) {
    .modal-content { grid-template-columns: 1fr; gap: 30px; padding-top: 80px; }
    .modal-text-col { padding: 0 20px 50px; }
    .modal-image-col img { max-height: 50vh; }
    .modal-title { font-size: 2.5rem; }
}

/* --- Add to assets/style.css --- */

/* Related Images Section in Modal */
.related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.related-grid {
    display: flex;
    gap: 15px;
}

.related-card {
    width: 100px;
    cursor: pointer;
    transition: 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}

.related-card span {
    font-size: 0.75rem;
    color: var(--grey);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Relative positioning for the menu */
.admin-card {
    position: relative;
    overflow: visible !important; /* Allow menu to spill out */
}

/* Header row for Title + Menu */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 10px;
}

/* 3-Dot Menu Button */
.menu-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 0.5;
    padding: 0 10px;
}

/* The Dropdown Box */
.menu-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 40px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
    min-width: 120px;
    overflow: hidden;
}

/* Show menu when active */
.menu-dropdown.show { display: block; }

.menu-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #ccc;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #333;
}

.menu-dropdown button:hover { background: #333; color: white; }
.menu-dropdown button:last-child { border-bottom: none; }
.menu-dropdown button.text-red { color: #ff4444; }
.menu-dropdown button.text-red:hover { background: #ff4444; color: white; }

/* SOLD ITEM STYLES */
.admin-card.sold-item img {
    filter: grayscale(100%) brightness(0.5);
}

.sold-badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ff4444;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    font-family: 'Syne', sans-serif;
    border-radius: 4px;
    pointer-events: none;
    letter-spacing: 2px;
}