/* styles.css - Custom Styles for Boss & Belle Challenge Web App */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --boss-light: #e0f2fe;
    --boss-primary: #0284c7;
    --boss-dark: #0369a1;
    --boss-accent: #38bdf8;
    
    --belle-light: #ffe4e6;
    --belle-primary: #db2777;
    --belle-dark: #be185d;
    --belle-accent: #f472b6;
}

body {
    font-family: 'Kanit', sans-serif;
    background: #fafafa;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, hsla(253,16%,7%,0) 50%, rgba(2, 132, 199, 0.03) 100%),
        radial-gradient(at 100% 100%, hsla(225,39%,30%,0) 0, hsla(225,39%,30%,0) 50%, rgba(219, 39, 119, 0.03) 100%);
    background-attachment: fixed;
}

/* Glassmorphism Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Calendar Dots/Grid Styling */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
}

.dot-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.dot-cell:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Dot completion stages - Boss */
.dot-boss-empty {
    border: 2px dashed #bae6fd;
    background-color: transparent;
    color: #94a3b8;
}

.dot-boss-zero {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.dot-boss-partial {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.dot-boss-full {
    background-color: #0284c7;
    border: 1px solid #0369a1;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.3);
}

/* Dot completion stages - Belle */
.dot-belle-empty {
    border: 2px dashed #fecdd3;
    background-color: transparent;
    color: #94a3b8;
}

.dot-belle-zero {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.dot-belle-partial {
    background-color: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #db2777;
}

.dot-belle-full {
    background-color: #db2777;
    border: 1px solid #be185d;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(219, 39, 119, 0.3);
}

/* Animations and Glows */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(2, 132, 199, 0.2);
    }
    50% {
        box-shadow: 0 0 16px rgba(2, 132, 199, 0.5);
    }
}

.glow-boss {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow-belle {
    0%, 100% {
        box-shadow: 0 0 8px rgba(219, 39, 119, 0.2);
    }
    50% {
        box-shadow: 0 0 16px rgba(219, 39, 119, 0.5);
    }
}

.glow-belle {
    animation: pulse-glow-belle 2s infinite;
}

/* Celebration Effect */
.winner-badge {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* Calendar headers styling */
.calendar-header-day {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    text-align: center;
    padding-bottom: 0.25rem;
}

/* Checkbox customizations */
.custom-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-checkbox.checked-boss {
    background-color: #0284c7;
    border-color: #0284c7;
    color: white;
}

.custom-checkbox.checked-belle {
    background-color: #db2777;
    border-color: #db2777;
    color: white;
}
