/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #252d17;
    color: #ecedd9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
header {
    background-color: #3d4628;
    padding: 1rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(185, 192, 130, 0.20);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: #ceca98;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fb4491;
}

/* Main Content */
main {
    flex: 1;
    padding: 1rem 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-title {
    font-size: 4rem;
    font-weight: bold;
    color: #ecedd9;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}

.hero-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Content Section */
.content-section {
    text-align: center;
    margin-top: 1.5rem;
}

.event-info {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ceca98;
}

.event-date {
    font-size: 1.5rem;
    color: #b8b040;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #ceca98;
    color: #1e2410;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cta-button:hover {
    background-color: #fb4491;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 68, 145, 0.4);
}

/* Timetable Page */
.timetable-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    color: #ecedd9;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.timetable {
    background-color: #333d1f;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 192, 130, 0.20);
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: #3d4628;
    border-radius: 8px;
    border-left: 4px solid #b8b040;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-slot:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(251, 68, 145, 0.2);
    border-left-color: #fb4491;
}

.time-slot:last-child {
    margin-bottom: 0;
}

.time {
    font-size: 1.3rem;
    font-weight: bold;
    color: #b8b040;
}

.band-info {
    text-align: right;
}

.band-name {
    font-size: 1.5rem;
    color: #ecedd9;
    font-weight: 500;
}

.band-description {
    font-size: 1.1rem;
    color: #ceca98;
    opacity: 0.85;
    margin-top: 0.3rem;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
footer {
    background-color: #3d4628;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ceca98;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(185, 192, 130, 0.20);
}

footer p {
    margin: 0;
}

.social-links {
    display: flex;
    align-items: center;
}

.instagram-icon {
    color: #ceca98;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.instagram-icon:hover {
    color: #fb4491;
    transform: scale(1.1);
}

/* Guestbook Page */
.guestbook-container {
    max-width: 800px;
    margin: 0 auto;
}

.guestbook-form-section {
    background-color: #333d1f;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 192, 130, 0.20);
}

.section-title {
    font-size: 1.8rem;
    color: #ecedd9;
    margin-bottom: 1.5rem;
    text-align: center;
}

.guestbook-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ceca98;
    font-weight: bold;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(185, 192, 130, 0.28);
    border-radius: 5px;
    background-color: #3d4628;
    color: #ecedd9;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ceca98;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: rgba(175, 168, 55, 0.18);
    color: #ecedd9;
    border: 2px solid #b8b040;
}

.form-message.error {
    background-color: rgba(251, 68, 145, 0.15);
    color: #fb4491;
    border: 2px solid #fb4491;
}

.guestbook-entries-section {
    background-color: #333d1f;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(185, 192, 130, 0.20);
}

.entries-list {
    max-width: 700px;
    margin: 0 auto;
}

.entry {
    background-color: #3d4628;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #b8b040;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(251, 68, 145, 0.2);
    border-left-color: #fb4491;
}

.entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ecedd9;
}

.entry-date {
    font-size: 0.9rem;
    color: #ceca98;
    opacity: 0.8;
}

.entry-message {
    color: #ceca98;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.loading,
.no-entries,
.error {
    text-align: center;
    color: #ceca98;
    font-style: italic;
    padding: 2rem;
}

/* Photo upload */
.file-input {
    display: none;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #3d4628;
    color: #ceca98;
    border: 2px solid rgba(185, 192, 130, 0.35);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: border-color 0.3s ease, color 0.3s ease;
    margin-bottom: 0.75rem;
}

.file-upload-label:hover {
    border-color: #ceca98;
    color: #ecedd9;
}

.photo-preview-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
}

.photo-preview-wrapper[hidden] {
    display: none;
}

.photo-preview {
    display: block;
    max-width: 100%;
    max-height: 280px;
    border-radius: 6px;
    border: 2px solid rgba(185, 192, 130, 0.28);
    object-fit: contain;
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fb4491;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-photo:hover {
    background-color: #e03070;
}

/* Photo in guestbook entries */
.entry-photo {
    margin-top: 1rem;
}

.entry-photo img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    border: 2px solid rgba(185, 192, 130, 0.20);
    object-fit: contain;
    display: block;
}

.entry-photo-clickable {
    cursor: zoom-in;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.entry-photo-clickable:hover {
    opacity: 0.88;
    transform: scale(1.01);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 18, 10, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: lightbox-in 0.18s ease;
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox[hidden] {
    display: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.8);
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #ecedd9;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0.25rem 0.5rem;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    nav ul {
        gap: 1rem;
    }

    .time-slot {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

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

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .guestbook-form-section,
    .guestbook-entries-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .entry-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Portrait phone optimisation (≤ 480 px) */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .timetable {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .time-slot {
        padding: 0.9rem 0.75rem;
        gap: 0.35rem;
        border-left-width: 3px;
    }

    .time {
        font-size: 1rem;
    }

    .band-name {
        font-size: 1.15rem;
    }

    .band-description {
        font-size: 0.9rem;
    }

    .back-link {
        margin-top: 2rem;
    }
}
