/* ------------------------------ */
/*  1. Global Reset & Base Styles */
/* ------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff; /* White background for the entire page */
    color: #333;
    line-height: 1.6;
}

/* ------------------------------ */
/*  2. Header                     */
/* ------------------------------ */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #081501; /* Dark green background */
    min-height: 70px; /* Allow header to grow if needed */
    border-bottom: 1px solid #e5e5e5;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    margin-right: 10px;
}



.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove fixed width/height so it adjusts better on small screens */
    margin-left: 20px;
}

.logo {
    width: 180px; /* Adjusted for better scaling */
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

.search-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    max-width: 600px;
}

.search-bar {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}

.search-icon {
    background-color: #bac11b;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 8px 15px;
    color: white;
    cursor: pointer;
}

.search-icon i {
    font-size: 14px;
}

.account-icon {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
}

/* ------------------------------ */
/*  3. Profile Section            */
/* ------------------------------ */

.profile-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.profile-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.profile-container {
    display: flex;
    gap: 30px;
}

.profile-photo {
    text-align: center;
    flex-shrink: 0;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.profile-photo button {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background-color: #bac11b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.profile-photo button:hover {
    background-color: #333;
}

.profile-details {
    flex: 1;
}

.profile-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-field {
    flex: 1;
}

.profile-field label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.profile-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border 0.3s ease;
}

.profile-field input:focus {
    border-color: #ff8c00;
}

.profile-field button {
    margin-top: 5px;
    padding: 8px 12px;
    border: none;
    background-color: #bac11b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.save-btn  {
    margin-top: 5px;
    padding: 8px 12px;
    border: none;
    background-color: #bac11b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.profile-field button:hover {
    background-color: #333;
}

/* ------------------------------ */
/*  4. Events Section             */
/* ------------------------------ */

.events-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.events-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.events-container {
    display: flex; /* We'll switch to grid at smaller breakpoints */
    flex-wrap: wrap;
    gap: 20px;
}

.event-card {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.event-card button {
    padding: 8px 12px;
    border: none;
    background-color: #bac11b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-bottom: 10px; /* For spacing at bottom */
}

.event-card button:hover {
    background-color: #ffffff;
}

.event-card.expired {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #999;
    opacity: 0.6;
    pointer-events: none;
}

.event-card.expired button {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ------------------------------ */
/*  5. Settings Section           */
/* ------------------------------ */

.settings-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.settings-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.settings-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px; /* Add padding inside the form */
    background-color: #fff; /* White background for distinction */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px;
}

.settings-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-section label {
    font-size: 14px;
    color: #666;
}

.settings-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border 0.3s ease;
}

.settings-section input:focus {
    border-color: #ff8c00;
}

.settings-section button {
    align-self: center;
    padding: 10px 20px;
    background-color: #bac11b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.settings-section button:hover {
    background-color: #333;
}

/* ------------------------------ */
/*  6. Help Section               */
/* ------------------------------ */

.help-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center; /* Centers the heading */
}

.help-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-section ul li {
    font-size: 16px;
    color: #555;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centers text */
    
    display: flex;
    justify-content: center; /* Horizontally centers text */
    align-items: center; /* Vertically centers text */
}

/* Tickets Section */
.tickets-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.ticket-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.ticket-header {
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-name {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    line-height: 1.2;
}

.status-badge {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #22c55e;
    color: white;
}

.status-badge.listed {
    background: #eab308;
    color: white;
}

.status-badge.sold {
    background: #ef4444;
    color: white;
}

.status-badge.expired {
    background: #6b7280;
    color: white;
}

.ticket-body {
    padding: 0 20px 20px 20px;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-row i {
    width: 20px;
    color: #6b7280;
}

/* Media Queries */
@media (max-width: 640px) {
    .tickets-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* ------------------------------ */
/*  7. Burger Menu                */
/* ------------------------------ */

.burger-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
}

.burger-menu ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.burger-menu ul li {
    margin-bottom: 20px;
}

.burger-menu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.burger-menu ul li a:hover {
    color: #ff8c00;
}

.burger-menu.open {
    left: 0;
}

/* Overlay to dim background when menu is open */
.burger-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none; /* hidden by default */
}

.burger-menu-overlay.open {
    display: block; /* show overlay when menu is open */
}

/* ------------------------------ */
/*  8. Media Queries (Responsive) */
/* ------------------------------ */

/* Medium devices (tablets) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .menu-icon {
        font-size: 20px;
    }

    .logo {
        width: 140px; /* Slightly smaller logo for tablets */
    }

    /* Stack the profile container vertically on tablets */
    .profile-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Use a 2-column grid for events on tablets */
    .events-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    /* Override event-card flex property */
    .event-card {
        flex: none;
        width: 100%;
    }
}

/* Small devices (phones) */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        width: 100px;
    }

    .profile-photo .image-placeholder {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }

    .profile-section h2,
    .events-section h2,
    .settings-section h2,
    .help-section h2 {
        font-size: 18px;
    }

    .profile-field input,
    .profile-field button {
        font-size: 12px;
    }

    /* Switch events to single-column on smaller phones */
    .events-container {
        grid-template-columns: 1fr;
    }
}
