/*
 * Quasar Bazaar Hackweek - Custom Indico Stylesheet
 * A cosmic-themed stylesheet for your quackweek! 🌌🦆
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Work+Sans:wght@400;500;600&display=swap');

/* ============================================
   CSS VARIABLES - Cosmic Color Palette
   ============================================ */
:root {
    --cosmos-dark: #0a0e27;
    --cosmos-blue: #1e3a8a;
    --quasar-purple: #7c3aed;
    --quasar-pink: #ec4899;
    --star-yellow: #fbbf24;
    --nebula-cyan: #06b6d4;
    --text-light: #e5e7eb;
    --text-dim: #9ca3af;
    --card-bg: rgba(30, 41, 59, 0.6);
}

/* ============================================
   ANIMATED STARFIELD BACKGROUND
   ============================================ */
body {
    background: var(--cosmos-dark) !important;
    color: var(--text-light) !important;
    font-family: 'Work Sans', sans-serif !important;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 90%, white, transparent),
        radial-gradient(1px 1px at 15% 80%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: twinkle 60s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; background-position: 0% 0%; }
    50% { opacity: 0.8; background-position: 100% 100%; }
}

/* ============================================
   PRESERVE INDICO HEADER TOOLBAR
   (Export, Add to favorites, etc.)
   ============================================ */
/* Don't style the Indico event header toolbar */
.event-header,
.event-header *,
.event-actions,
.event-actions *,
.toolbar,
.toolbar *,
header.event-header,
header.event-header * {
    background: initial !important;
    color: initial !important;
    border: initial !important;
    font-family: initial !important;
    padding: initial !important;
    margin: initial !important;
    box-shadow: initial !important;
    text-shadow: none !important;
    animation: none !important;
}

/* ============================================
   TITLE BOX - Cosmic Conference Title
   (Preserving Indico's header toolbar)
   ============================================ */
.confTitleBox {
    background: linear-gradient(135deg, var(--quasar-purple) 0%, var(--quasar-pink) 50%, var(--star-yellow) 100%) !important;
    border-top: none !important;
    border-bottom: none !important;
    min-height: 140px !important;
    padding: 3rem 0 !important;
    position: relative;
    overflow: hidden;
}

.confTitleBox::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    animation: nebula 20s ease-in-out infinite;
}

@keyframes nebula {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 10px) rotate(180deg); }
}

.confTitle {
    position: relative;
    z-index: 1;
}

.conference-title-link {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    text-shadow: 0 0 20px rgba(255,255,255,0.5),
                 0 0 40px rgba(124,58,237,0.3) !important;
    animation: glow 3s ease-in-out infinite;
    padding: 1rem 0 !important;
    letter-spacing: -0.02em;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(124,58,237,0.3); }
    50% { text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(124,58,237,0.5); }
}

/* ============================================
   SUBTITLE BOX
   ============================================ */
.confSubTitleBox {
    background: rgba(10, 14, 39, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--quasar-purple) !important;
    border-top: 1px solid rgba(124, 58, 237, 0.3) !important;
    padding: 1.2rem 0 !important;
}

.confSubTitleContent {
    color: var(--text-light) !important;
    font-size: 1.1rem !important;
}

.datePlace {
    font-family: 'Orbitron', sans-serif;
    color: var(--star-yellow) !important;
    font-size: 1.1rem !important;
    font-weight: 600;
}

.confSubTitle a {
    color: var(--nebula-cyan) !important;
    transition: all 0.3s;
}

.confSubTitle a:hover {
    color: var(--quasar-pink) !important;
    text-shadow: 0 0 10px var(--quasar-pink);
}

/* ============================================
   ANNOUNCEMENT BOX
   ============================================ */
.simpleTextAnnouncement {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)) !important;
    border: 1px solid var(--star-yellow) !important;
    border-left: 4px solid var(--star-yellow) !important;
    color: var(--text-light) !important;
    font-family: 'Work Sans', sans-serif !important;
    padding: 1rem !important;
    border-radius: 8px;
}

/* ============================================
   MENU / LEFT NAVIGATION
   ============================================ */
.conf_leftMenu {
    background: transparent !important;
}

#outer {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#outer li a {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.95rem !important;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

#outer li a:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.2)) !important;
    color: var(--quasar-pink) !important;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.menuConfTitle.selected > a,
.menuConfMiddleCell.selected > a {
    background: linear-gradient(135deg, var(--quasar-purple), var(--quasar-pink)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

li ul.inner li a {
    background-image: none !important;
    color: var(--nebula-cyan) !important;
    padding-left: 30px !important;
}

li ul.inner li a:before {
    content: '▸';
    color: var(--star-yellow);
    margin-right: 8px;
}

/* ============================================
   SUPPORT BOX
   ============================================ */
.support_box {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.support_box > h3 {
    background: linear-gradient(135deg, var(--quasar-purple), var(--quasar-pink)) !important;
    color: white !important;
    font-family: 'Orbitron', sans-serif;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.confBodyBox {
    background: transparent !important;
    color: var(--text-light) !important;
}

.confBodyBox h1,
.confBodyBox h2,
.confBodyBox h3 {
    font-family: 'Orbitron', sans-serif !important;
    color: var(--quasar-pink) !important;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.confBodyBox h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.confBodyBox h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--quasar-purple), var(--nebula-cyan));
    border-radius: 2px;
}

.confBodyBox h2 {
    font-size: 2rem !important;
    color: var(--nebula-cyan) !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.confBodyBox p,
.confBodyBox li,
.confBodyBox td {
    color: var(--text-light) !important;
    line-height: 1.7;
}

.confBodyBox a {
    color: var(--nebula-cyan) !important;
    transition: all 0.3s;
}

.confBodyBox a:hover {
    color: var(--quasar-pink) !important;
    text-shadow: 0 0 10px var(--quasar-pink);
}

/* ============================================
   TABLES - Minimal styling (excluding timetable)
   ============================================ */
/* Only style tables in content area, not timetable */
.confBodyBox table:not(.timetable):not([class*="time"]):not([class*="schedule"]) {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    border-radius: 12px;
    overflow: hidden;
}

.confBodyBox table:not(.timetable):not([class*="time"]):not([class*="schedule"]) th {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.3)) !important;
    color: var(--quasar-pink) !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
    padding: 1rem !important;
    border: 1px solid rgba(124, 58, 237, 0.4) !important;
}

.confBodyBox table:not(.timetable):not([class*="time"]):not([class*="schedule"]) td {
    background: rgba(30, 41, 59, 0.3) !important;
    padding: 0.8rem !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
}

.confBodyBox table:not(.timetable):not([class*="time"]):not([class*="schedule"]) tr:hover td {
    background: rgba(30, 41, 59, 0.5) !important;
}

/* ============================================
   BUTTONS (excluding header toolbar)
   ============================================ */
/* Only style buttons in content area, not header */
.confBodyBox button,
.confBodyBox .button,
.confBodyBox input[type="submit"],
.confBodyBox input[type="button"],
main button:not(.event-header *):not(.toolbar *),
main .button:not(.event-header *):not(.toolbar *) {
    background: linear-gradient(135deg, var(--quasar-purple), var(--quasar-pink)) !important;
    color: white !important;
    border: none !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 8px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.confBodyBox button:hover,
.confBodyBox .button:hover,
.confBodyBox input[type="submit"]:hover,
.confBodyBox input[type="button"]:hover,
main button:not(.event-header *):not(.toolbar *):hover,
main .button:not(.event-header *):not(.toolbar *):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6) !important;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    color: var(--text-light) !important;
    padding: 0.6rem !important;
    border-radius: 6px;
    font-family: 'Work Sans', sans-serif !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--quasar-pink) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* ============================================
   SCHEDULE / TIMETABLE
   NOTE: Removed custom styling to preserve Indico's 
   default timetable layout and alignment
   ============================================ */

/* Only subtle background enhancement, no layout changes */
.timetable-wrapper,
.event-timetable {
    /* Let Indico handle all timetable styling */
}

/* ============================================
   BOXES / PANELS
   ============================================ */
.box,
.panel,
.alert,
.info-box {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.4s;
}

.box:hover,
.panel:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

/* Warning/Important boxes */
.warning,
.important {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)) !important;
    border-left: 4px solid var(--star-yellow) !important;
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
    color: var(--text-light) !important;
}

li::marker {
    color: var(--quasar-pink);
}

/* ============================================
   CARDS / CONTENT BLOCKS
   ============================================ */
.card,
.content-block,
.event-block {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    margin-bottom: 1.5rem;
    transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card:hover,
.content-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
    border-color: var(--quasar-purple);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(10, 14, 39, 0.9) !important;
    border-top: 2px solid var(--quasar-purple) !important;
    color: var(--text-dim) !important;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--nebula-cyan) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 950px) {
    .confTitle,
    .confSubTitleContent,
    #confSectionsBox {
        width: 100% !important;
        padding: 0 1.5rem;
    }
    
    .conference-title-link {
        font-size: 2.5rem !important;
    }
    
    .conf_leftMenu {
        width: 100% !important;
        margin-bottom: 2rem;
    }
    
    .confBodyBox {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .conference-title-link {
        font-size: 2rem !important;
    }
    
    .confTitleBox {
        padding: 2rem 0 !important;
        min-height: 100px !important;
    }
}

/* ============================================
   SPECIAL QUASAR ELEMENTS
   ============================================ */

/* Add "It's a quackweek!" subtitle if you want */
.conference-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Emoji styling */
.emoji {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Duck emoji special animation 🦆 */
.quack {
    animation: quack 2s ease-in-out infinite;
}

@keyframes quack {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ============================================
   CUSTOM SCROLLBAR (WebKit browsers)
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--cosmos-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--quasar-purple), var(--quasar-pink));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--quasar-pink);
}

/* ============================================
   END OF QUASAR BAZAAR STYLESHEET
   Made with ✨ and cosmic enthusiasm! 🌌🦆
   ============================================ */