/**
 * Grebe Club Challenges - Styles
 * Version: 1.2.0
 */

:root {
    /* Monthly theme colors */
    --march-color: #FF6B6B;      /* Safe and Sure - Red */
    --april-color: #4ECDC4;      /* Together - Teal */
    --may-color: #95E1D3;        /* Green/Blue - Aqua */
    --june-color: #FFD93D;       /* Fun! - Yellow */
    --july-color: #6BCB77;       /* Crew Development - Green */
    --august-color: #FF8C42;     /* Active Adventure - Orange */
    --september-color: #A8E6CF;  /* Navigation - Light Green */
    --october-color: #4A90E2;    /* Oceanwide - Ocean Blue */
    --february-color: #9B59B6;   /* Purple */
    --cmyc-blue: #2C5F8D;
    --cmyc-yellow: #FFD700;
}

.grebe-club-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.grebe-club-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.grebe-club-container .container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.grebe-club-container .header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.grebe-club-container .header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--cmyc-blue), var(--cmyc-yellow));
    border-radius: 2px;
}

.grebe-club-container h1 {
    color: var(--cmyc-blue);
    font-size: 2.5em;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.grebe-club-container .subtitle {
    color: #666;
    font-size: 1.1em;
    font-style: italic;
}

.grebe-club-container .month-indicator {
    display: inline-block;
    padding: 10px 30px;
    background: var(--cmyc-blue);
    color: white;
    border-radius: 25px;
    margin: 20px 0;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.grebe-club-container .challenges-section {
    margin: 40px 0;
}

.grebe-club-container .month-theme-header {
    margin-bottom: 30px;
}

.grebe-club-container .theme-header-content {
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    animation: fadeInDown 0.8s ease-out;
}

.grebe-club-container .theme-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.grebe-club-container .theme-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.grebe-club-container .theme-description {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 0 100px;
    font-style: italic;
}

.grebe-club-container .section-title {
    font-size: 1.8em;
    color: var(--cmyc-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grebe-club-container .top-challenge {
    background: linear-gradient(135deg, #FFD93D 0%, #FF8C42 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.grebe-club-container .top-challenge::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.2;
    animation: rotate 20s linear infinite;
}

.grebe-club-container .challenge-badge {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: #FF6B00;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grebe-club-container .challenge-title {
    font-size: 1.8em;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.grebe-club-container .challenge-description {
    color: rgba(255,255,255,0.95);
    font-size: 1.1em;
    line-height: 1.8;
}

.grebe-club-container .challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.grebe-club-container .challenge-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--cmyc-blue);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.grebe-club-container .challenge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.grebe-club-container .challenge-card h3 {
    color: var(--cmyc-blue);
    margin-bottom: 12px;
    font-size: 1.3em;
}

.grebe-club-container .challenge-card p {
    color: #555;
    line-height: 1.7;
}

.grebe-club-container .challenge-card[data-theme="march"] { border-left-color: var(--march-color); }
.grebe-club-container .challenge-card[data-theme="april"] { border-left-color: var(--april-color); }
.grebe-club-container .challenge-card[data-theme="may"] { border-left-color: var(--may-color); }
.grebe-club-container .challenge-card[data-theme="june"] { border-left-color: var(--june-color); }
.grebe-club-container .challenge-card[data-theme="july"] { border-left-color: var(--july-color); }
.grebe-club-container .challenge-card[data-theme="august"] { border-left-color: var(--august-color); }
.grebe-club-container .challenge-card[data-theme="september"] { border-left-color: var(--september-color); }
.grebe-club-container .challenge-card[data-theme="october"] { border-left-color: var(--october-color); }
.grebe-club-container .challenge-card[data-theme="february"] { border-left-color: var(--february-color); }

.grebe-club-container .theme-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.grebe-club-container .theme-badge.march { background: var(--march-color); }
.grebe-club-container .theme-badge.april { background: var(--april-color); }
.grebe-club-container .theme-badge.may { background: var(--may-color); }
.grebe-club-container .theme-badge.june { background: var(--june-color); }
.grebe-club-container .theme-badge.july { background: var(--july-color); }
.grebe-club-container .theme-badge.august { background: var(--august-color); }
.grebe-club-container .theme-badge.september { background: var(--september-color); }
.grebe-club-container .theme-badge.october { background: var(--october-color); }
.grebe-club-container .theme-badge.february { background: var(--february-color); }

.grebe-club-container .calendar-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
}

.grebe-club-container .calendar-section h2 {
    color: white;
    margin-bottom: 20px;
}

.grebe-club-container .events-list {
    list-style: none;
}

.grebe-club-container .event-item {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.grebe-club-container .event-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.grebe-club-container .event-date {
    font-weight: bold;
    color: var(--cmyc-yellow);
    margin-right: 10px;
}

.grebe-club-container .refresh-notice {
    text-align: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin: 20px 0;
    color: #667eea;
    font-style: italic;
}

.grebe-club-container .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.grebe-club-container .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grebe-club-container .legend-clickable {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.grebe-club-container .legend-clickable:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.grebe-club-container .legend-clickable.active {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.grebe-club-container .legend-color {
    width: 30px;
    height: 20px;
    border-radius: 4px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .grebe-club-container .container {
        padding: 20px;
    }

    .grebe-club-container h1 {
        font-size: 1.8em;
    }

    .grebe-club-container .challenges-grid {
        grid-template-columns: 1fr;
    }

    .grebe-club-container .legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .grebe-club-container .theme-title-row {
        flex-direction: column;
        text-align: center;
    }

    .grebe-club-container .theme-logo {
        width: 80px;
        height: 80px;
    }

    .grebe-club-container .theme-description {
        margin: 10px 0 0 0;
        text-align: center;
    }
}

/* Stagger animation delays */
.grebe-club-container .challenge-card:nth-child(1) { animation-delay: 0.1s; }
.grebe-club-container .challenge-card:nth-child(2) { animation-delay: 0.2s; }
.grebe-club-container .challenge-card:nth-child(3) { animation-delay: 0.3s; }
.grebe-club-container .challenge-card:nth-child(4) { animation-delay: 0.4s; }
.grebe-club-container .challenge-card:nth-child(5) { animation-delay: 0.5s; }
