/* assets/css/style.css */
:root {
    --bg-main: #0f111a;
    --bg-panel: #1a1d2d;
    --bg-panel-hover: #23273a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-secondary: #8b5cf6;
    --border-color: #2e334d;
    
    /* Event Colors */
    --color-conn: #10b981;
    --color-happy: #f59e0b;
    --color-super: #ef4444;
    --color-soul: #8b5cf6;
    --color-refinery: #06b6d4;
    --color-discount: #ec4899;
    --color-custom: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

.glow-text {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.glow-text-small {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Layout Split View */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* --- Left Column: Calendar --- */
.calendar-section {
    flex: 6;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-panel);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.3s;
}

.nav-btn:hover {
    color: var(--accent-primary);
}

.calendar-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.weekday, .days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.weekday {
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.days-container {
    flex: 1;
    grid-auto-rows: minmax(100px, 1fr);
}

.calendar-day {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
}

.calendar-day.today {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.calendar-day.has-events:hover {
    background: var(--bg-panel-hover);
    transform: translateY(-2px);
}

.day-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-end;
}

/* Event Badges in Calendar */
.event-badge-small {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s;
}

.event-badge-small:hover {
    transform: scale(1.05);
}

/* Colors for Badges */
.type-CONNECTING_TIME { background-color: var(--color-conn); }
.type-HAPPY_HOUR { background-color: var(--color-happy); }
.type-SUPER_MODE { background-color: var(--color-super); }
.type-CREATURE_SOUL { background-color: var(--color-soul); }
.type-REFINERY { background-color: var(--color-refinery); }
.type-DISCOUNT { background-color: var(--color-discount); }
.type-CUSTOM { background-color: var(--color-custom); }

/* --- Right Column: Details Panel --- */
.details-section {
    flex: 4;
    background: var(--bg-panel);
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.event-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.event-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.event-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.event-dates {
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.event-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.border-accent {
    border-left: 4px solid var(--accent-primary);
}

.info-box h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: #fff;
}

.discount-banner {
    background: linear-gradient(135deg, var(--color-discount), #be185d);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discount-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.discount-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.rewards-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.reward-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.reward-img-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reward-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reward-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-word;
}

.reward-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mt-20 { margin-top: 20px; }

.admin-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.admin-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .app-wrapper {
        flex-direction: column;
    }
    
    .calendar-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}
