/* Página Fornecedores Credenciados */

/* Header Verde com Selo */
.anunciantes-header {
    width: 100%;
    background: #009C5D;
    padding: 60px 0 40px 0;
    position: relative;
    overflow: visible;
    margin-bottom: 0;
}

.anunciantes-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.anunciantes-header-text {
    flex: 1;
    padding-top: 20px;
}

.anunciantes-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 120%;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.anunciantes-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.anunciantes-selo {
    position: relative;
    margin-right: 50px;
    z-index: 10;
}

.anunciantes-selo img {
    width: 280px;
    height: auto;
    position: relative;
    top: 80px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0px 8px 24px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Busca e Filtros */
.anunciantes-search-section {
    background: #F8F9FA;
    padding: 80px 0 40px 0;
    border-bottom: 1px solid #E3E8EF;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

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

.anunciantes-search-box {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.anunciantes-search-input-group {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.anunciantes-search-input {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 48px;
    border: 1px solid #E3E8EF;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #4B5565;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.anunciantes-search-input:focus {
    outline: none;
    border-color: #009C5D;
    box-shadow: 0 0 0 3px rgba(0, 156, 93, 0.1);
}

.anunciantes-search-input::placeholder {
    color: #9AA4B2;
}

.anunciantes-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9AA4B2;
    font-size: 20px;
}

.anunciantes-filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.anunciantes-filter-label {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #4B5565;
    white-space: nowrap;
}

.anunciantes-filter-tabs {
    display: flex;
    background: #FFFFFF;
    border: 1px solid #E3E8EF;
    border-radius: 12px;
    overflow: hidden;
}

.anunciantes-filter-tab {
    padding: 12px 24px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #697586;
    background: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anunciantes-filter-tab:not(:last-child) {
    border-right: 1px solid #E3E8EF;
}

.anunciantes-filter-tab:hover {
    background: #F8F9FA;
    color: #009C5D;
}

.anunciantes-filter-tab.active {
    background: #009C5D;
    color: #FFFFFF;
    font-weight: 600;
}

.anunciantes-filter-select {
    min-width: 180px;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #E3E8EF;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #4B5565;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anunciantes-filter-select:focus {
    outline: none;
    border-color: #009C5D;
    box-shadow: 0 0 0 3px rgba(0, 156, 93, 0.1);
}

/* Grid de Cards */
.anunciantes-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.anunciantes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

/* Card do Fornecedor */
.anunciante-card {
    background: #FFFFFF;
    border: 1px solid #E3E8EF;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.anunciante-card:hover {
    box-shadow: 0px 12px 32px rgba(16, 24, 40, 0.15);
    transform: translateY(-6px);
    border-color: #009C5D;
}

.anunciante-card-logo {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
}

.anunciante-card-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.anunciante-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.anunciante-card-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    color: #121926;
    margin-bottom: 12px;
}

.anunciante-card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #009C5D;
    margin-bottom: 16px;
    flex-shrink: 0;
    min-height: 40px;
}

.anunciante-card-location span {
    flex: 1;
    line-height: 1.4;
}

.anunciante-card-location i {
    font-size: 16px;
}

.anunciante-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.anunciante-card-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: #25D366;
    border: none;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
}

.anunciante-card-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(37, 211, 102, 0.3);
    color: #FFFFFF;
}

.anunciante-card-whatsapp i {
    font-size: 20px;
}

.anunciante-card-btn {
    width: 100%;
    height: 44px;
    background: #009C5D;
    border: none;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
}

.anunciante-card-btn:hover {
    background: #00814D;
    transform: scale(1.02);
}

.anunciante-card-btn:active {
    transform: scale(0.98);
}

/* Responsivo - Tablet */
@media (max-width: 992px) {
    .anunciantes-title {
        font-size: 36px;
    }
    
    .anunciantes-subtitle {
        font-size: 18px;
    }
    
    .anunciantes-selo img {
        width: 220px;
        top: 60px;
    }
    
    .anunciantes-header {
        padding: 50px 0 35px 0;
        margin-bottom: 0;
    }
    
    .anunciantes-search-section {
        margin-top: 0;
        padding: 70px 0 40px 0;
    }
    
    .anunciantes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .anunciantes-search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .anunciantes-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .anunciantes-filter-tabs {
        width: 100%;
    }
    
    .anunciante-card-logo img {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .anunciantes-header {
        padding: 40px 0 30px 0;
        margin-bottom: 0;
    }
    
    .anunciantes-header-content {
        flex-direction: column-reverse;
        text-align: center;
        align-items: center;
    }
    
    .anunciantes-header-text {
        padding-top: 0;
    }
    
    .anunciantes-selo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .anunciantes-selo img {
        width: 180px;
        top: 50px;
    }
    
    .anunciantes-title {
        font-size: 28px;
    }
    
    .anunciantes-subtitle {
        font-size: 16px;
        max-width: 100%;
    }
    
    .anunciantes-search-section {
        margin-top: 0;
        padding: 60px 0 30px 0;
    }
    
    .anunciantes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .anunciante-card {
        padding: 24px;
    }
    
    .anunciante-card-logo {
        height: 120px;
    }
    
    .anunciante-card-logo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 120px;
    }
    
    .anunciante-card-whatsapp {
        font-size: 15px;
        height: 42px;
    }
    
    .anunciante-card-btn {
        font-size: 15px;
        height: 42px;
    }
    
    .anunciantes-search-input-group {
        min-width: 100%;
    }
}

/* Estado vazio */
.anunciantes-empty {
    text-align: center;
    padding: 80px 20px;
}

.anunciantes-empty-icon {
    font-size: 64px;
    color: #E3E8EF;
    margin-bottom: 24px;
}

.anunciantes-empty-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #4B5565;
    margin-bottom: 12px;
}

.anunciantes-empty-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #9AA4B2;
}

/* ==================== MODAL STYLES ==================== */

.anunciante-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.anunciante-modal-content {
    background-color: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.anunciante-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.anunciante-modal-close:hover {
    background-color: #F3F4F6;
    color: #111827;
}

.anunciante-modal-body {
    padding: 40px;
}

.anunciante-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #009C5D;
}

.anunciante-modal-loading p {
    margin-top: 20px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    color: #6B7280;
}

.anunciante-modal-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.anunciante-modal-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    padding: 0;
}

.anunciante-modal-title {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #009C5D;
    margin: 0;
    flex: 1;
}

.anunciante-modal-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #009C5D;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

.anunciante-modal-description {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.4;
    color: #4B5563;
    margin-bottom: 30px;
    white-space: pre-line;
}

.anunciante-modal-footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.anunciante-modal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #6B7280;
}

.anunciante-modal-location i {
    color: #009C5D;
    font-size: 16px;
}

.anunciante-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.anunciante-modal-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.anunciante-modal-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(37, 211, 102, 0.3);
}

.anunciante-modal-whatsapp i {
    font-size: 18px;
}

.anunciante-modal-btn-close {
    background: #F3F4F6;
    color: #374151;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anunciante-modal-btn-close:hover {
    background: #E5E7EB;
    color: #111827;
}

/* Responsive para Modal */
@media (max-width: 768px) {
    .anunciante-modal {
        padding: 10px;
    }
    
    .anunciante-modal-content {
        border-radius: 16px;
        max-width: 100%;
    }
    
    .anunciante-modal-body {
        padding: 24px;
    }
    
    .anunciante-modal-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .anunciante-modal-logo {
        width: 80px;
        height: 80px;
    }
    
    .anunciante-modal-title {
        font-size: 20px;
    }
    
    .anunciante-modal-subtitle {
        font-size: 16px;
    }
    
    .anunciante-modal-description {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .anunciante-modal-actions {
        flex-direction: column;
    }
    
    .anunciante-modal-whatsapp,
    .anunciante-modal-btn-close {
        width: 100%;
        justify-content: center;
    }
}

