/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Praianas */
    --azul-oceano: #0077B6;
    --azul-claro: #00B4D8;
    --azul-ceu: #90E0EF;
    --areia: #F4A460;
    --areia-clara: #FFE4B5;
    --sol: #FFA500;
    --sol-forte: #FFD700;
    --verde-palma: #2D6A4F;
    --coral: #FF6B6B;
    --coral-escuro: #E63946;
    --branco: #FFFFFF;
    --cinza-claro: #F8F9FA;
    --cinza-medio: #DEE2E6;
    --texto: #2B2D42;
    
    /* Gradientes */
    --gradient-oceano: linear-gradient(135deg, #0077B6 0%, #00B4D8 50%, #90E0EF 100%);
    --gradient-sol: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-praia: linear-gradient(to bottom, #90E0EF 0%, #FFE4B5 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--texto);
    background: linear-gradient(to bottom, #CAF0F8 0%, #FFFFFF 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--gradient-oceano);
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container .logo:hover {
    transform: scale(1.05);
}

.logo-svg {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    color: var(--branco);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

.main-nav a {
    color: var(--branco);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Tábua de Maré */
.tide-table {
    background: var(--gradient-sol);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

.tide-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--branco);
    font-weight: 600;
}

.tide-icon {
    font-size: 24px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.tide-text {
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.tide-data {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
}

/* Filtros */
.filters-section {
    background: var(--branco);
    padding: 30px 0;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.filters-section h2 {
    color: var(--azul-oceano);
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.filters {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--azul-oceano);
}

.filter-group select {
    padding: 10px 20px;
    border: 2px solid var(--azul-claro);
    border-radius: 25px;
    font-size: 16px;
    background: var(--branco);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--azul-oceano);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    outline: none;
}

/* Feed de Notícias */
.main-content {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--branco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.2);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.category-gastronomia { color: var(--coral); }
.category-hoteis { color: var(--azul-oceano); }
.category-passeios { color: var(--verde-palma); }
.category-crimes { color: #DC2626; }
.category-geral { color: var(--sol); }

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.news-location {
    color: var(--azul-oceano);
    font-weight: 600;
}

.news-date {
    color: #6C757D;
}

.news-title {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.news-title a {
    color: var(--texto);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--azul-oceano);
}

.news-description {
    color: #495057;
    margin-bottom: 15px;
    font-size: 15px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid var(--cinza-claro);
}

.news-source {
    font-size: 13px;
    color: #6C757D;
}

.read-more {
    color: var(--azul-oceano);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--azul-claro);
    transform: translateX(5px);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
}

.page-link {
    padding: 12px 25px;
    background: var(--azul-oceano);
    color: var(--branco);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--azul-claro);
    transform: scale(1.05);
}

.page-info {
    font-weight: 600;
    color: var(--azul-oceano);
}

/* Formulário de Contato */
.contact-section {
    background: var(--gradient-praia);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 20px;
}

.contact-section h2 {
    text-align: center;
    color: var(--azul-oceano);
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: center;
    color: var(--texto);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--branco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--azul-oceano);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--azul-claro);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-oceano);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-oceano);
    color: var(--branco);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 182, 0.4);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #D1F2EB;
    color: #0F5132;
    display: block;
}

.form-message.error {
    background: #F8D7DA;
    color: #842029;
    display: block;
}

/* Footer */
.main-footer {
    background: var(--gradient-oceano);
    color: var(--branco);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--branco);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--sol-forte);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 5px 0;
}

/* No News */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: var(--branco);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.no-news p {
    font-size: 20px;
    color: var(--texto);
    margin: 10px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeIn 0.5s ease;
}

/* News Detail */
.news-detail { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 40px; }
.news-detail-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.tag-beach { background: #E0F7FF; color: #0077B6; padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; text-decoration: none; }
.tag-category { padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; text-transform: capitalize; background: #fff3cd; color: #856404; }
.news-detail-title { font-size: 32px; line-height: 1.3; color: #1a1a2e; margin-bottom: 25px; }
.news-detail-image { border-radius: 15px; overflow: hidden; margin-bottom: 25px; max-height: 450px; }
.news-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.news-detail-source { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 2px solid #f0f0f0; border-bottom: 2px solid #f0f0f0; margin-bottom: 25px; color: #666; font-size: 14px; }
.source-link { color: #0077B6; font-weight: 600; text-decoration: none; }
.news-detail-body { font-size: 17px; line-height: 1.9; color: #333; margin-bottom: 30px; }
.btn-back { display: inline-block; padding: 12px 25px; background: #0077B6; color: white; border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-back:hover { background: #00B4D8; transform: translateX(-5px); }
.related-news { margin-top: 50px; }
.related-news h2 { color: #0077B6; font-size: 28px; margin-bottom: 25px; }

/* Search */
.search-box { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin-bottom: 35px; text-align: center; }
.search-box h1 { color: #0077B6; margin-bottom: 20px; font-size: 32px; }
.search-form { display: flex; gap: 12px; max-width: 600px; margin: 0 auto; }
.search-input { flex: 1; padding: 14px 20px; border: 2px solid #00B4D8; border-radius: 25px; font-size: 16px; font-family: 'Poppins', sans-serif; }
.search-input:focus { outline: none; border-color: #0077B6; box-shadow: 0 0 10px rgba(0,180,216,0.3); }
.search-btn { padding: 14px 28px; background: #0077B6; color: white; border: none; border-radius: 25px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.search-btn:hover { background: #00B4D8; }
.search-results-count { color: #666; margin-bottom: 20px; font-size: 16px; }

/* AdSense */
.ad-banner {
    width: 100%;
    min-height: 90px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}
