/* ============================================
   event_base.css
   Base Styles, Typography, and Utilities
   ============================================ */

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    min-height: 100vh;
    color: var(--text-description);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    background: var(--body-bg);
}

/* ============================================
   Typography - Improved Hierarchy
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-on-light);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 1.1rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: 1rem;
    color: var(--text-description);
}

/* Links - Better blending */
a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-decoration: underline;
}

/* Bold text - less emphasis */
strong, b {
    font-weight: 600;
    color: var(--text-on-light);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   Utilities
   ============================================ */
.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecf3 100%) !important;
}

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Don't break long URLs */
.dont-break-out {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Legacy Image Styles */
.img-left {
    float: left;
    margin: 0 15px 10px 0;
    padding: 2px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.img-right {
    float: right;
    margin: 0 0 10px 15px;
    padding: 2px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    max-width: 350px;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

/* ============================================
   Footer
   ============================================ */
footer.bg-black {
    background-color: var(--dark-color) !important;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    margin-top: auto;
}

footer.bg-black a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer.bg-black a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* Footer Timestamps */
footer.bg-black .updateEventCountry,
footer.bg-black .timezone-converted,
footer.bg-black .updateDateTime,
footer.bg-black span[data-eid] {
    color: var(--timestamp-on-black) !important;
    font-weight: 500 !important;
}

/* Security Note */
.security-note {
    margin-top: 3rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
}

.security-note small {
    color: var(--muted-text);
    font-size: 0.85rem;
}

.security-note i {
    color: var(--success-color);
}

/* Calendar Section */
.calendar-section {
    text-align: center;
}

/* Print styles */
@media print {
    .no-print,
    .btn,
    .nav-tabs,
    .fixed-bottom-alert,
    .spinner-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .event-hero {
        background: none;
        color: black;
        border: 1px solid #ddd;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-rsvp-hero {
        background: var(--accent-color);
        border: 3px solid #FFFFFF;
        color: #FFFFFF;
        font-weight: 800;
        box-shadow: none;
        animation: none;
    }

    .btn-rsvp-hero:hover {
        background: #FFFFFF;
        color: var(--accent-color);
        border-color: var(--accent-color);
    }

    .form-control {
        border-width: 2px;
    }

    .alert {
        border: 2px solid currentColor;
    }
}
