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

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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #f3f4f6;
    min-height: 100vh;
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
}

.admin-link {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.admin-link:hover {
    background: var(--primary-hover);
}

/* MAIN CONTENT */
.main-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
}

.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.year-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.year-btn:hover {
    background: var(--primary-color);
    color: white;
}

#current-year {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 150px;
    text-align: center;
}

/* MONTHS GRID */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.month-card {
    background: var(--bg-gray);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.month-card.available {
    background: #10b981;
    color: white;
    border-color: transparent;
}

.month-card.available:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.month-card.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.month-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.month-status {
    font-size: 14px;
    opacity: 0.9;
}

.month-card.available .month-status::before {
    content: "✓ ";
}

.month-card.unavailable .month-status::before {
    content: "✕ ";
}

/* NO BOLETINS */
.no-boletins {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-boletins p {
    font-size: 18px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 24px;
    color: #6b7280;
    margin-top: 32px;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header h1 {
        font-size: 22px;
    }

    .main-content {
        padding: 24px;
    }

    .year-selector {
        gap: 16px;
    }

    #current-year {
        font-size: 28px;
    }

    .months-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .month-card {
        padding: 16px;
    }

    .month-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
