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

body {
    font-family: 'Poppins', serif;
    color: #5a5a5a;
    background-color: #f8f9fa;
    height: 100vh;
    overflow: hidden;
}

/* Link Styles */
a:link {
    color: #d5661d;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

a:visited {
    color: #d5661d;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

a:hover {
    color: #d5661d;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

a:active {
    color: #d5661d;
    cursor: pointer;
    text-decoration: none;
    border: none;
}

/* Activities Page Styles */
.activities-content {
    position: relative;
    line-height: 1.6;
}

.activity-section {
    margin: 2rem 0;
}

.activity-title {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d5661d;
    padding-bottom: 0.5rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #d5661d;
}

.schedule-item .time {
    font-weight: bold;
    color: #d5661d;
    min-width: 80px;
    margin-right: 1rem;
}

.schedule-item .event {
    color: #000000;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(213, 102, 29, 0.3);
}

.activity-item h3 {
    color: #d5661d;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.activity-item p {
    color: #000000;
    margin: 0;
}

.wienerquest-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #d5661d;
}

.wienerquest-info h3 {
    color: #d5661d;
    margin: 1rem 0 0.5rem 0;
}

.wienerquest-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.wienerquest-info li {
    color: #000000;
    margin-bottom: 0.25rem;
}

.wienerquest-link {
    text-align: center;
    margin-top: 1.5rem;
}

.action-btn {
    background: #d5661d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background: #b8541a;
}

.action-btn.primary {
    background: #d5661d;
}

.action-btn i {
    margin-right: 8px;
}

/* History Link Button */
.history-link-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.history-link-button:hover {
    background: #5a6268;
}

.history-link-button i {
    margin-right: 5px;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d5661d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.back-button:hover {
    background: #b8541a;
}

.back-button i {
    margin-right: 5px;
}

/* Layout Structure */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #d5661d 35%, #000000 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.logo {
    height: 90px;
    width: auto;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.content-area {
    position: fixed;
    top: 50px;
    bottom: 60px;
    left: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
}

.page-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 150px);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    z-index: 9999;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    flex: 1;
    height: 100%;
}

.nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-btn.active {
    color: #fff;
    background: #000000;
}

.nav-btn:hover {
    color: #000000;
    background: #f5f5f5;
}

/* Typography */
h1 {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    color: #000000;
}

h3 {
    color: #000000;
    font-size: 22px;
}

.food-type-title {
    color: #000000;
}

.food-title {
    color: #000000;
}

.menu-item {
    cursor: pointer;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: #f5f5f5;
    border-color: #000000;
}

/* Home Page Styles */
.home-content {
    text-align: center;
    padding: 2rem 0;
}

.event-info {
    background: linear-gradient(135deg, #d5661d, #000000);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.event-details {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.event-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.event-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    min-width: 80px;
}

.faq-content {
    text-align: left;
    margin: 2rem 0;
    line-height: 1.6;
}

.faq-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.wenImg {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    margin: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wenImgDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Food Page Styles */
.food-content {
    position: relative;
}

.menu-section {
    margin: 2rem 0;
}

.menu-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.food-title {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ingredients {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.food-type-title {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d5661d;
}

.veggie-note {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Charity Page Styles */
.charity-content {
    line-height: 1.6;
}

.charity-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.charity-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.charity-info {
    flex: 1;
}

.item-cost {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
}

.item-title {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.item-description {
    color: #666;
    font-size: 0.9rem;
}

.venmo-link {
    color: #d5661d;
    text-decoration: none;
    font-weight: 600;
}

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

/* Counter Component */
.counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.counter-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #000000;
    background: #fff;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background: #000000;
    color: #fff;
}

.counter-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #d5661d, #000000);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    pointer-events: none;
}

.notification {
    background: #000000;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        border-top: 1px solid #e0e0e0 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
        display: flex !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        z-index: 9999 !important;
    }
    
    .nav-btn {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        color: #666 !important;
        font-size: 12px !important;
        cursor: pointer !important;
        padding: 8px !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-btn.active {
        color: #fff !important;
        background: #000000 !important;
    }
        transition: all 0.3s ease !important;
    }
    
    .page-content {
        padding: 15px;
        padding-bottom: 80px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .charity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .charity-image {
        width: 120px;
        height: 120px;
    }
    
    .wenImgDiv {
        flex-direction: column;
        align-items: center;
    }
    
    .event-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 9999;
        display: flex;
    }
    
    .nav-btn {
        padding: 6px 8px;
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .nav-btn i {
        font-size: 20px;
    }
    
    .nav-btn span {
        font-size: 10px;
    }
    
    .page-content {
        padding: 10px;
        padding-bottom: 70px;
    }
    
    .event-info {
        padding: 1.5rem;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }
.visible { display: block; }

/* History Page Styles */
.history-content {
    position: relative;
    line-height: 1.6;
}

.history-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d5661d;
}

.year-section {
    margin: 2rem 0;
}

.year-section .food-type-title {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d5661d;
}