/* Página de Extensão - Versão Melhorada e Responsiva */

:root {
    --verde1: rgb(53, 152, 48);
    --verde2: rgb(44, 68, 32);
    --verde-light: #4db844;
    --vermelho1: rgb(201, 12, 15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Tipografia */
.section-subtitle {
    color: var(--verde1);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--verde1);
}

/* Botões */
/* .btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--verde2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 1rem;
    border: none;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--verde1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(53, 152, 48, 0.3);
} */

/* Hero Section com Gradiente */
.main {
    margin-top: 76px;
    min-height: 40vh;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.main-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 3rem 0;
    animation: fadeInUp 1s ease;
}

.main-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-content p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 700px;
}

/* Seção de Schedule/Projetos */
.schedule-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.schedule-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.month-selector {
    text-align: center;
}

.month-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: var(--verde1);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.days-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.day-button {
    min-width: 80px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--verde1);
    background: white;
    color: var(--verde1);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.day-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(53, 152, 48, 0.2);
}

.day-button.active {
    background-color: var(--verde1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(53, 152, 48, 0.3);
}

/* Gradiente de Fundo */
.gradient-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgb(25, 108, 0) 0%,
        rgb(8, 78, 0) 100%
    );
}

.gradient-bg svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

.gradient-bg .gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.gradient-bg .g1,
.gradient-bg .g2,
.gradient-bg .g3,
.gradient-bg .g4,
.gradient-bg .g5 {
    position: absolute;
    background-repeat: no-repeat;
    mix-blend-mode: hard-light;
}

.gradient-bg .g1 {
    background: radial-gradient(circle at center, rgba(18, 113, 0, 0.8) 0, rgba(18, 113, 0, 0) 50%);
    width: 80%;
    height: 80%;
    top: calc(50% - 40%);
    left: calc(50% - 40%);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.gradient-bg .g2 {
    background: radial-gradient(circle at center, rgba(221, 74, 0, 0.8) 0, rgba(221, 74, 0, 0) 50%);
    width: 80%;
    height: 80%;
    top: calc(50% - 40%);
    left: calc(50% - 40%);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.gradient-bg .g3 {
    background: radial-gradient(circle at center, rgba(100, 220, 0, 0.8) 0, rgba(100, 220, 0, 0) 50%);
    width: 80%;
    height: 80%;
    top: calc(50% - 40% + 200px);
    left: calc(50% - 40% - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.gradient-bg .g4 {
    background: radial-gradient(circle at center, rgba(200, 50, 50, 0.8) 0, rgba(200, 50, 50, 0) 50%);
    width: 80%;
    height: 80%;
    top: calc(50% - 40%);
    left: calc(50% - 40%);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.gradient-bg .g5 {
    background: radial-gradient(circle at center, rgba(180, 180, 50, 0.8) 0, rgba(180, 180, 50, 0) 50%);
    width: calc(80% * 2);
    height: calc(80% * 2);
    top: calc(50% - 80%);
    left: calc(50% - 80%);
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.gradient-bg .interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(140, 200, 0, 0.8) 0, rgba(140, 200, 0, 0) 50%);
    mix-blend-mode: hard-light;
    width: 100%;
    height: 100%;
    top: -50%;
    left: -50%;
    opacity: 0.7;
}

/* Animações do Gradiente */
@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */

/* Tablets */
@media (max-width: 992px) {
    .main-content h1 {
        font-size: 2.5rem;
    }

    .main-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .month-title {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .main {
        min-height: 35vh;
        padding: 2rem 0;
    }

    .main-content {
        padding: 2rem 0;
        text-align: center;
    }

    .main-content h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .main-content p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }

    .schedule-section {
        padding: 3rem 0;
    }

    .schedule-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .month-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .days-list {
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .day-button {
        min-width: 70px;
        height: 45px;
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .main {
        min-height: 30vh;
        margin-top: 70px;
    }

    .main-content {
        padding: 1.5rem 0;
    }

    .main-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .main-content p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .month-title {
        font-size: 1.4rem;
    }

    .schedule-section {
        padding: 2.5rem 0;
    }

    .days-list {
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .day-button {
        min-width: 65px;
        height: 42px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .main-content h1 {
        font-size: 1.5rem;
    }

    .main-content p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .month-title {
        font-size: 1.2rem;
    }

    .day-button {
        min-width: 60px;
        height: 40px;
        font-size: 0.8rem;
    }
}

/* Melhorias de Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (opcional) */
@media (prefers-color-scheme: dark) {
    .schedule-section {
        background-color: #1a1a1a;
    }

    .section-title,
    .month-title {
        color: var(--verde-light);
    }

    .day-button {
        background: #2a2a2a;
        border-color: var(--verde-light);
        color: var(--verde-light);
    }

    .day-button.active {
        background-color: var(--verde-light);
        color: #1a1a1a;
    }
}

/* Estados de Carregamento */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    color: var(--verde1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(53, 152, 48, 0.2);
    border-top-color: var(--verde1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: var(--verde1);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
}

/* Acessibilidade */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--verde1);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Visible */
button:focus-visible,
a:focus-visible,
.day-button:focus-visible {
    outline: 3px solid var(--verde1);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .main,
    .gradient-bg,
    .schedule-wrapper {
        display: none;
    }

    .schedule-section {
        background: white;
        padding: 0;
    }

    .events-list {
        padding: 0;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .main {
        min-height: 50vh;
    }

    .main-content h1 {
        font-size: 2rem;
    }

    .main-content p {
        font-size: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .day-button {
        border-width: 3px;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Animação de entrada para os filtros */
.days-list {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hover Effects aprimorados */
.day-button {
    position: relative;
    overflow: hidden;
}

.day-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.day-button:hover::before {
    width: 200px;
    height: 200px;
}

/* Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--verde1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--verde2);
}

/* Selection */
::selection {
    background: var(--verde1);
    color: white;
}

::-moz-selection {
    background: var(--verde1);
    color: white;
}