:root {
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #f5f5dc; /* Beige */
    --text-color: #333;
    --bg-color: #fafafa;
    --overlay-color: rgba(0, 0, 0, 0.85);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-image is set inline in index.php via PHP variable */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Slightly darker for better gold contrast */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Animation removed to ensure immediate visibility/contrast in screenshots */
    /* animation: fadeIn 1s ease-in-out; */
    color: #ffffff !important;
}

/* Golden Glitter Effect */
@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem; /* Larger for more impact */
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;

    /* Golden Gradient & Shimmer */
    background: linear-gradient(
        to right,
        #bf953f,
        #fcf6ba,
        #b38728,
        #fbf5b7,
        #aa771c
    );
    background-size: 200% auto;
    color: #bf953f; /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shine 4s linear infinite;

    /* Drop shadow via filter since text is transparent */
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.8));
}

.hero .date {
    font-size: 1.5rem;
    font-weight: 400; /* Thicker */
    margin-bottom: 1rem;
    border-top: 1px solid rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.9);
    display: inline-block;
    padding: 0.5rem 2rem;
    color: #ffffff !important;
}

.hero .welcome-text {
    font-size: 1.1rem;
    opacity: 1;
    color: #ffffff !important;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #c09b2e;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-small:hover {
    background-color: var(--text-color);
    color: white;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    overflow: hidden;
}

.upload-section.hidden {
    height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.upload-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eee;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 3rem;
    border: 2px dashed #ddd;
    border-radius: 5px;
    transition: 0.2s;
    background-color: #fcfcfc;
}

.file-drop-area.is-active {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
}

.fake-btn {
    flex-shrink: 0;
    background-color: white;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 8px 15px;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
}

.file-msg {
    font-size: small;
    font-weight: 300;
    color: #666;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.info-text {
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #888;
}

.btn-submit {
    background-color: #333;
    color: white;
    margin-top: 1rem;
}
.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.file-list {
    margin: 10px 0;
    text-align: left;
    font-size: 0.9rem;
}

.progress-bar {
    height: 5px;
    width: 100%;
    background-color: #eee;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.status-msg {
    margin-top: 10px;
    font-weight: bold;
}

.status-msg.success { color: green; }
.status-msg.error { color: red; }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
    padding-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
    aspect-ratio: 1 / 1; /* Square thumbnails */
    animation: fadeIn 0.5s ease-in-out;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
}

.gallery-item .type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover {
    color: var(--primary-color);
}

.download-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: rgba(255,255,255,0.4);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Thank you */
.thank-you {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
