@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
    --primary-color: #D4A017; /* Noble Gold */
    --secondary-color: #1a1a1a; /* Rich Black */
    --bg-color: #fcfcfc; /* Museum White */
    --text-color: #333;
    --accent-color: #2d5a27; /* Botanical Green */
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

/* Header */
header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, var(--bg-color));
}

.title-container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Voting Button */
.vote-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.vote-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.5);
    background-color: #b88a10;
}

/* Gallery Grid */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.artwork-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.artwork-img-container {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eee;
}

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

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

.artwork-info {
    padding: 1.5rem;
}

.artwork-no {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.creator-name {
    font-size: 0.9rem;
    color: #777;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: block;
    opacity: 1;
}

.modal-content {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.modal-img-container {
    flex: 1;
    position: sticky;
    top: 2rem;
}

.modal-img-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(212, 160, 23, 0.1);
    color: var(--primary-color);
}

.detail-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.detail-value.large {
    font-size: 2rem;
}

.detail-text {
    font-size: 1rem;
    color: #444;
    white-space: pre-wrap;
    line-height: 1.8;
}

.x-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.x-link:hover {
    text-decoration: underline;
}

header {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.brand-logo {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.x-divider {
    font-size: 1.5rem;
    color: var(--noble-gold);
    font-weight: 300;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}
