/**
 * FloripaDigital.com.br - Estilos Principais
 * Design moderno e responsivo para o portal
 * 
 * @package FloripaDigital
 * @version 1.0.0
 */

/* ===================================
   VARIÁVEIS CSS
   =================================== */
:root {
    /* Cores Principais - Baseadas no mar e natureza */
    --primary-color: #0077BE;
    --primary-dark: #005A8D;
    --primary-light: #33A1DB;
    
    --secondary-color: #00B386;
    --secondary-dark: #008A66;
    --secondary-light: #33C59D;
    
    --accent-color: #FFB100;
    --accent-dark: #CC8E00;
    
    /* Cores de Suporte */
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --white: #FFFFFF;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0, 119, 190, 0.7), rgba(0, 179, 134, 0.8));
    
    /* Tipografia */
    --font-family: 'Roboto', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* ===================================
   RESET E BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ===================================
   NAVBAR
   =================================== */
#mainNav {
    padding: 1rem 0;
    background: rgba(0, 119, 190, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    z-index: 1030;
}

#mainNav.scrolled {
    background: rgba(0, 119, 190, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

/* Navbar transparente apenas em desktop quando no topo */
@media (min-width: 992px) {
    #mainNav {
        background: transparent;
    }
    
    #mainNav.scrolled {
        background: rgba(0, 119, 190, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Navbar Mobile - Fundo sempre sólido */
@media (max-width: 991px) {
    #mainNav {
        background: rgba(0, 119, 190, 0.98) !important;
    }
    
    .navbar-collapse {
        background: transparent;
        margin: 0 -1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .btn-outline-light {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition-normal);
}

#mainNav .navbar-brand:hover {
    transform: scale(1.05);
    color: var(--accent-color);
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    position: relative;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    width: 80%;
}

#mainNav .nav-link:hover {
    color: var(--accent-color);
}

#mainNav .btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: var(--transition-normal);
}

#mainNav .btn-outline-light:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0077BE 0%, #00B386 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s backwards;
}

/* Search Box */
.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
}

.search-form .form-control {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border: none;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .input-group-text {
    padding: 0 1.5rem;
}

.search-form .btn-primary {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    padding: 0 2rem;
    transition: var(--transition-normal);
}

.search-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-link-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    min-width: 120px;
}

.quick-link-btn i {
    font-size: 2rem;
}

.quick-link-btn span {
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-link-btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   SEÇÕES
   =================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

/* ===================================
   ANUNCIANTES EM DESTAQUE
   =================================== */
.advertiser-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
}

.advertiser-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.advertiser-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.advertiser-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.advertiser-category {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.advertiser-description {
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.advertiser-rating {
    text-align: center;
}

/* ===================================
   PONTOS TURÍSTICOS
   =================================== */
.tourist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    height: 100%;
}

.tourist-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.tourist-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tourist-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.tourist-content {
    padding: 1.5rem;
}

.tourist-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.tourist-location {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tourist-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===================================
   BANNER ANUNCIE AQUI
   =================================== */
.advertise-banner {
    background: var(--gradient-primary);
    color: var(--white);
}

.advertise-box {
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.advertise-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.advertise-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

.advertise-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================================
   NOTÍCIAS
   =================================== */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.news-card-featured .news-image {
    height: 350px;
}

.news-card-horizontal .news-image {
    height: 100%;
    min-height: 150px;
}

.news-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    z-index: 10;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-title-small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* ===================================
   BLOG
   =================================== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.blog-read-more:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: var(--white);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-text-small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

.newsletter-form .input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: none;
}

.newsletter-form .btn-primary {
    background: var(--primary-color);
    border: none;
}

.newsletter-form .btn-primary:hover {
    background: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright,
.footer-dev {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===================================
   COOKIE CONSENT BANNER
   =================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 3px solid var(--primary-color);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Desktop first - evita flash */
.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.cookie-description {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

.cookie-description a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-description a:hover {
    color: var(--primary-dark);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-cookie-reject {
    background: #6c757d;
    color: var(--white);
}

.btn-cookie-reject:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1rem;
}

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

.btn-cookie-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-cookie-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   COOKIE SETTINGS MODAL
   =================================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-weight: 700;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: var(--dark-color);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.cookie-option:hover {
    background: #e9ecef;
}

.cookie-option-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-option h6 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
}

.cookie-option .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-fast);
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   RESPONSIVIDADE COOKIE BANNER
   =================================== */
/* Mobile last - evita flash no desktop */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cookie-icon {
        font-size: 2.5rem;
        align-self: center;
    }
    
    .cookie-text {
        min-width: 100%;
        text-align: left;
    }
    
    .cookie-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .cookie-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn-cookie {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   LAZY LOADING
   =================================== */
.lazy-bg {
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.lazy-bg:not(.loaded) {
    opacity: 0.7;
}

.lazy-bg.loaded {
    opacity: 1;
}

/* Placeholder para imagens lazy */
.lazy-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-bg:not(.loaded)::before {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   BOTÃO VOLTAR AO TOPO
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 1020;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Tablets */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quick-links {
        gap: 0.75rem;
    }
    
    .quick-link-btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
    
    .quick-link-btn i {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .search-form .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .search-form .btn-primary {
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }
    
    .quick-links {
        gap: 0.5rem;
    }
    
    .quick-link-btn {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
    }
    
    .quick-link-btn i {
        font-size: 1.25rem;
    }
    
    .quick-link-btn span {
        font-size: 0.75rem;
    }
    
    .advertiser-card {
        padding: 1.5rem;
    }
    
    .advertiser-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .advertise-box {
        padding: 2rem 1.5rem;
    }
    
    .advertise-title {
        font-size: 1.5rem;
    }
    
    .advertise-description {
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===================================
   OTIMIZAÇÕES PARA PERFORMANCE
   =================================== */

/* Lazy Loading */
[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

[loading="lazy"].loaded {
    opacity: 1;
}

/* Redução de Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   UTILITÁRIOS
   =================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}
