/* Clima & Hoje - Estilos com Tema Meteorológico */

:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --sky-blue: #87ceeb;
    --cloud-white: #ffffff;
    --dark-gray: #1f2937;
    --medium-gray: #4b5563;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-dark: #111827;
    --text-medium: #374151;
    --border-color: #e5e7eb;
    --sun-yellow: #fbbf24;
    --rain-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #e0f2fe 0%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Animações de Nuvens no Fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="15" fill="rgba(255,255,255,0.3)"/><circle cx="35" cy="30" r="18" fill="rgba(255,255,255,0.3)"/><circle cx="50" cy="30" r="15" fill="rgba(255,255,255,0.3)"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="70" cy="50" r="12" fill="rgba(255,255,255,0.2)"/><circle cx="85" cy="50" r="15" fill="rgba(255,255,255,0.2)"/><circle cx="100" cy="50" r="12" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: 200px 100px, 150px 80px;
    background-position: 0 0, 100px 50px;
    background-repeat: repeat-x;
    animation: cloudMove 60s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes cloudMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200px); }
}

/* Tipografia Grande */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--dark-gray);
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

/* Header Moderno com Tema Meteorológico */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--light-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo::before {
    content: '☁️';
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo:hover {
    text-decoration: none;
}

/* Menu Hambúrguer para Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

nav ul li a:hover::before,
nav ul li a.active::before {
    width: 80%;
}

nav ul li a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
    text-decoration: none;
}

nav ul li a.active {
    color: var(--primary-blue);
    font-weight: 600;
    background: rgba(37, 99, 235, 0.15);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    margin-bottom: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero::before {
    content: '☀️';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '⛅';
    position: absolute;
    top: 40px;
    left: 30px;
    font-size: 3rem;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Cards Grid - Layout Aleatório */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 968px) {
    .cards-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid.columns-2,
    .cards-grid.columns-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Карточки-ссылки не должны иметь подчеркивание */
a.card {
    text-decoration: none;
    color: inherit;
}

a.card:hover {
    text-decoration: none;
    color: inherit;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--sky-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card h3::before {
    content: '🌤️';
    font-size: 1.5rem;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid var(--light-blue);
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

a.card:hover .card-link {
    color: var(--secondary-blue);
}

/* Dica do Dia com Tema Meteorológico */
.dica-do-dia {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.dica-do-dia::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.dica-do-dia h2 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.dica-do-dia p {
    font-size: 1.25rem;
    color: var(--light-blue);
    position: relative;
    z-index: 1;
}

/* Formulários */
form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: 16px;
    border: 2px solid var(--light-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Listas */
ul.content-list {
    list-style: none;
    padding-left: 0;
}

ul.content-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

ul.content-list li::before {
    content: '🌦️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Footer com Política de Privacidade */
footer {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #111827 100%);
    color: var(--light-gray);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue), var(--sky-blue));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-blue);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.footer-bottom a {
    color: var(--light-blue);
    margin: 0 0.5rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Acessibilidade */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        width: 100%;
        order: 3;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 2px solid var(--light-blue);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        margin: 0;
    }
    
    nav ul.active {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav ul.active li:nth-child(1) { transition-delay: 0.05s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.15s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(5) { transition-delay: 0.25s; }
    nav ul.active li:nth-child(6) { transition-delay: 0.3s; }
    
    nav ul li a {
        width: 100%;
        padding: 1rem;
        border-radius: 6px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .logo::before {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
}

/* Paletas de Cores Aleatórias - Aplicadas via JavaScript */
.palette-1 {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
}

.palette-2 {
    --primary-blue: #1e40af;
    --secondary-blue: #2563eb;
    --light-blue: #bfdbfe;
}

.palette-3 {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e40af;
    --light-blue: #dbeafe;
}

/* Ícones Meteorológicos Decorativos */
.weather-icon {
    display: inline-block;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    margin: 0 0.5rem;
}

.weather-icon.sun {
    animation: rotate 20s linear infinite;
}

.weather-icon.rain {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
