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

html {
    background-image: url('../assets/images/background.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #87CEEB;
    min-height: 100vh;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    line-height: 1.6;
    background: transparent;
    color: #000;
    min-height: 100vh;
    padding: 20px;
    padding-top: 50px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
}

/* ============================================
   WINDOWS 98 THEME (Main Site)
   ============================================ */

.windows98-theme {
    background: transparent;
}

.window-frame {
    background: #C0C0C0;
    border: 2px outset #C0C0C0;
    margin-bottom: 20px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.window-titlebar {
    background: linear-gradient(to bottom, #000080, #0000FF);
    color: #FFF;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
    border-bottom: 1px solid #000;
}

.window-title {
    flex: 1;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.control-btn {
    width: 16px;
    height: 14px;
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    line-height: 1;
}

.control-btn:active {
    border: 1px inset #C0C0C0;
}

.window-content {
    padding: 20px;
    background: #C0C0C0;
}

/* Header Specifics */
.header-content {
    text-align: center;
}

.header-email-signup {
    margin-top: 25px;
    border-top: 2px groove #E0E0E0;
    padding-top: 15px;
}

.inline-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch; /* Match height */
    flex-wrap: wrap;
    margin-top: 15px;
}

.inline-form .retro-input {
    width: 250px;
    padding: 8px 6px; /* Match button vertical padding */
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 12px;
}

.inline-form .retro-button {
    padding: 8px 20px; /* Match vertical padding with input */
    box-sizing: border-box;
    line-height: 1.2;
    font-size: 12px;
}

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


.retro-title {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #000000;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.retro-subtitle {
    text-align: center;
    font-size: 14px;
    color: #000;
    margin-bottom: 20px;
}

.retro-text {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.retro-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000000;
}

.retro-form {
    max-width: 100%; /* controlled by container usually, inline form overrides */
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.retro-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
}

.retro-input {
    width: 100%;
    padding: 6px;
    border-top: 2px inset #808080;
    border-left: 2px inset #808080;
    border-bottom: 2px inset #FFFFFF;
    border-right: 2px inset #FFFFFF;
    background: #FFF;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 12px;
}

.retro-input:disabled {
    background: #E0E0E0;
    color: #808080;
    cursor: not-allowed;
}

.retro-button {
    padding: 8px 20px;
    background: #E0E0E0;
    border-top: 2px outset #E0E0E0;
    border-right: 2px outset #E0E0E0;
    border-bottom: 2px outset #E0E0E0;
    border-left: 2px outset #E0E0E0;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-bottom-color: #808080;
    border-right-color: #808080;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    text-transform: uppercase;
    transition: all 0.1s;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.retro-button:hover:not(.disabled) {
    background: #F0F0F0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.retro-button:active:not(.disabled) {
    border-top: 2px inset #808080;
    border-left: 2px inset #808080;
    border-bottom: 2px inset #FFFFFF;
    border-right: 2px inset #FFFFFF;
    background: #D0D0D0;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.retro-button.disabled {
    background: #A0A0A0;
    color: #606060;
    cursor: not-allowed;
    border-top: 2px inset #C0C0C0;
    border-right: 2px inset #C0C0C0;
    border-bottom: 2px inset #C0C0C0;
    border-left: 2px inset #C0C0C0;
}

.retro-button-link {
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.retro-button-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    padding: 4px 8px;
    background: #FFFFE1;
    border: 1px solid #000;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    border-bottom: 2px solid #808080;
    border-right: 2px solid #808080;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.retro-button-link[title] {
    cursor: not-allowed;
}

.coming-soon-note {
    margin-top: 10px;
    font-size: 11px;
    color: #000000;
    font-style: italic;
    text-align: center;
}

.email-section,
.hackathon-section {
    text-align: center;
}

.footer .window-content {
    padding: 10px;
}

.footer .retro-text {
    margin-bottom: 0;
}

.small {
    font-size: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 45px;
    }

    .retro-title {
        font-size: 24px;
    }

    .window-content {
        padding: 15px;
    }

    .retro-button {
        width: 100%;
    }
    
    .inline-form {
        flex-direction: column;
    }
    
    .inline-form .retro-input {
        width: 100%;
    }
    
    .inline-form .retro-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .retro-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .window-titlebar {
        font-size: 10px;
    }
}

/* ============================================
   CONHACKS 2026 SCROLLING BANNER (Windows 98 Style)
   ============================================ */

.flash-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #C0C0C0;
    border-bottom: 2px outset #C0C0C0;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 0;
    z-index: 1000;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background 0.2s;
}

.flash-banner:hover {
    background: #D0D0D0;
}

.flash-banner-content {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 40s linear infinite;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.flash-banner strong {
    color: #000080;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-banner .apply-now {
    color: #000080;
    font-size: 14px;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    padding: 0 4px;
}

.flash-banner .banner-separator {
    margin: 0 20px;
    display: inline-block;
}

@media (max-width: 768px) {
    body {
        padding-top: 45px;
    }
    
    .flash-banner {
        font-size: 11px;
        padding: 7px 0;
    }
    
    .flash-banner strong {
        font-size: 12px;
    }
}


/* ============================================
   CALENDAR & EVENTS
   ============================================ */

.calendar-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.calendar-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.events-feed {
    flex: 1;
}

.calendar-widget {
    background: #FFF;
    border: 2px inset #C0C0C0;
    padding: 10px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 12px;
    gap: 5px;
}

.calendar-header #current-month {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tiny-btn {
    padding: 2px 6px;
    min-width: 24px;
    width: auto;
    flex-shrink: 0;
    flex-grow: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 11px;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    margin-bottom: 4px;
}

.calendar-day {
    padding: 4px 0;
    cursor: pointer;
}

.calendar-day:hover:not(.empty) {
    background: #E0E0E0;
}

.calendar-day.today {
    border: 1px solid #000080;
}

.calendar-day.has-event {
    background: #000080;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
}

.perks-box {
    background: #FFF;
    border: 2px inset #C0C0C0;
    padding: 15px;
    text-align: center;
}

.perk-text {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000080;
    text-align: left;
}

.small-note {
    font-size: 9px;
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

/* Event List */
.event-card {
    background: #FFF;
    border: 2px inset #C0C0C0;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    transition: background-color 0.5s;
}

.event-card.highlight-event {
    border: 2px solid #000080;
    background: #F0F0FF;
}

/* Flash animation for calendar click */
@keyframes flash-animation {
    0% { background-color: #000080; color: #FFF; }
    100% { background-color: #FFF; color: inherit; }
}

.event-card.flash-highlight {
    animation: flash-animation 1s ease-out;
}

.event-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.event-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000;
}

.event-location {
    font-size: 12px;
    font-style: italic;
    margin-bottom: 8px;
}

.event-description {
    font-size: 13px;
    margin-bottom: 10px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dotted #CCC;
}


.event-tags {
    margin-bottom: 0;
}

.tag {
    display: inline-block;
    background: #E0E0E0;
    border: 1px solid #808080;
    font-size: 10px;
    padding: 2px 6px;
    margin-right: 5px;
    color: #000;
}

.small-btn {
    font-size: 11px;
    padding: 4px 12px;
}

/* Responsive Calendar */
@media (max-width: 700px) {
    .calendar-layout {
        flex-direction: column;
    }
    
    .calendar-sidebar {
        width: 100%;
        display: flex;
        gap: 20px;
    }
    
    .calendar-widget {
        flex: 1;
        margin-bottom: 0;
    }
    
    .perks-box {
        flex: 1;
    }
    
    .event-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .retro-button-link, .small-btn {
        width: 100%;
    }
    
    .calendar-header {
        font-size: 11px;
        gap: 5px;
    }
    
    .calendar-header .tiny-btn {
        padding: 1px 4px;
        min-width: 20px;
        max-width: 20px;
        font-size: 10px;
        flex-shrink: 0;
        flex-grow: 0;
        width: auto;
    }
    
    .calendar-header #current-month {
        font-size: 11px;
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 500px) {
    .calendar-sidebar {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-header {
        font-size: 10px;
        gap: 3px;
    }
    
    .calendar-header .tiny-btn {
        padding: 1px 3px;
        min-width: 18px;
        max-width: 18px;
        font-size: 9px;
        flex-shrink: 0;
        flex-grow: 0;
        width: auto;
    }
    
    .calendar-header #current-month {
        font-size: 10px;
        flex: 1;
        min-width: 0;
    }
}
