/* ===== Base Styles ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #000; /* Black */
    color: #FFD700; /* Gold */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    color: #FFD700;
    border-bottom: 2px solid #228B22;
    padding-bottom: 5px;
}

/* ===== Header and Nav ===== */
header {
    background-color: #013220; /* Forest green */
    text-align: center;
    padding: 20px 10px 60px;
}

.logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 6px 10px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    border-color: #FFD700;
    color: white;
}

/* ===== Divider ===== */
.gold-divider {
    height: 5px;
    background-color: #FFD700;
    width: 100%;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.6);
}

/* ===== Homepage Content ===== */
main {
    text-align: center;
    padding: 60px 20px;
}

main h1 {
    font-size: 2.5rem;
    text-decoration: underline;
    text-underline-offset: 8px;
    color: #FFD700;
}

main p {
    font-size: 18px;
    color: #ccc;
}

main p strong {
    color: white;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.image-wrapper {
    width: 200px;
    background-color: #111;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.6);
}

.thumbnail {
    width: 150px;
    height: 250px; /* Fixed height */
    object-fit: cover; /* Crop to fill while maintaining aspect ratio */
    border-radius: 8px;
    box-shadow: 0 0 6px #FFD700;
}

/* ===== Category Navigation ===== */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px 0;
    padding: 15px;
    background-color: #111;
    border-radius: 10px;
    border: 2px solid #228B22;
    flex-wrap: wrap;
}

.nav-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    border-color: #FFD700;
    color: white;
    background-color: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ===== Upload/Admin Form ===== */
.container {
    max-width: 960px;
    margin: 40px auto;
    background-color: #111;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px #228B22;
}

/* Form Inputs */
label, select, input, button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
}

input[type="file"], select {
    background-color: #222;
    color: #FFD700;
    border: 1px solid #444;
    padding: 10px;
    border-radius: 5px;
}

/* ===== Buttons ===== */
button {
    background-color: #228B22;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #006400;
}

/* Delete button (Admin) */
.delete-button {
    margin-top: 10px;
    background-color: #b30000;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    width: 100%;
}

.delete-button:hover {
    background-color: #800000;
}

/* Delete booking form styling */
.delete-booking-form {
    margin-top: 15px;
    width: 100%;
}

.delete-booking-form .delete-button {
    width: 100%;
    font-size: 14px;
    padding: 8px;
}

/* Logout button styling */
.logout-button {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: auto;
}

.logout-button:hover {
    background-color: #800000;
}

/* ===== Featured Images Section ===== */
.featured-images {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.featured-image-wrapper {
    position: relative;
    padding: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFA500);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldGlow 3s ease-in-out infinite alternate;
}

.featured-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

/* Gold glow animation */
@keyframes goldGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    }
}

/* ===== Mobile ===== */
@media screen and (max-width: 600px) {
    .logo {
        max-width: 100px;
    }

    nav a {
        font-size: 1rem;
    }

    main h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        flex-direction: column;
        align-items: center;
    }

    .category-nav {
        gap: 10px;
        padding: 10px;
    }

    .nav-link {
        font-size: 16px;
        padding: 8px 15px;
    }

    /* Featured images mobile styling */
    .featured-images {
        gap: 20px;
        margin-top: 30px;
    }

    .featured-img {
        width: 250px;
        height: 320px;
    }

    .featured-image-wrapper {
        padding: 6px;
    }
}

/* ===== Admin Panel Styles ===== */
.admin-section {
    margin-bottom: 30px;
}

.bookings-list {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #ffd700;
}

.booking-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.booking-header h3 {
    color: #ffd700;
    margin: 0;
}

.booking-date {
    color: #ccc;
    font-size: 14px;
}

.booking-details p {
    margin: 8px 0;
    color: #ddd;
}