@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Cores extraídas da logo Drivar */
    --primary-purple: #5500FF;  /* Roxo vibrante da engrenagem */
    --accent-orange: #FF6600;   /* Laranja do volante */
    --dark-bg: #111111;         /* Preto do texto DRIVAR */

    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #eeeeee;

    --verified-color: #00CC66;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 120px; /* Ajuste conforme necessário */
    object-fit: contain;
}

.btn-announce {
    background-color: var(--accent-orange);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3);
}

.btn-announce:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* Filtros */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-group { flex: 1; min-width: 150px; }
.filter-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-light); margin-bottom: 0.5rem; display: block; }
.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}
.filter-group select:focus { border-color: var(--primary-purple); }

/* Grid de Instrutores */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Card Style */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(85, 0, 255, 0.1);
    border-color: rgba(85, 0, 255, 0.2);
}

.card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f5f5f5;
}

.card-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-purple);
}

.card-info-main { flex: 1; }

.name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.verified-badge {
    background-color: var(--verified-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.rating { font-size: 0.9rem; color: var(--text-light); }
.rating strong { color: #FFB800; }

/* Redes Sociais no Card */
.social-links-card {
    display: flex;
    gap: 0.5rem;
}
.social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.social-btn:hover { opacity: 0.8; }
.social-btn.facebook { background-color: #1877F2; }
.social-btn.instagram { background-color: #E4405F; }
.social-btn.disabled { background-color: #ddd; cursor: not-allowed; }

.card-details {
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    background-color: #fafafa;
}

.detail-item {
    font-size: 0.85rem;
    color: var(--text-main);
}
.detail-item strong {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.card-actions {
    padding: 1.2rem;
    display: flex;
    gap: 0.8rem;
    background: white;
}

.btn {
    text-decoration: none;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-review {
    flex: 1;
    background-color: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}
.btn-review:hover { background-color: #f0ebff; }

.btn-whatsapp {
    flex: 2;
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background-color: #20bd5a; }

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); } /* Logo branco no footer */
.footer-logo p { font-size: 0.9rem; color: #888; line-height: 1.6; }

.footer-links h3, .footer-social h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #bbb; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-orange); }

.footer-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    text-decoration: none;
    transition: background 0.3s;
}
.footer-social a:hover { background: var(--primary-purple); }

.footer-bottom {
    background: #000;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
}

/* Loader */
.loader-container { padding: 3rem; text-align: center; width: 100%; grid-column: 1/-1; }
.loader { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-purple); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .header-container { flex-direction: row; justify-content: space-between; }
    .instructor-grid { grid-template-columns: 1fr; }
}
