/* --- Funcionalidades Page Styles --- */


/* FILTER TABS */
.filter-section {
    padding: 2.5rem 0 0;
    background: var(--bg-gray);
}

.filter-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Inter', sans-serif;
}

.filter-btn i {
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.filter-btn[data-filter="gestor"].active {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.filter-btn[data-filter="passageiro"].active {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.filter-btn[data-filter="excursionista"].active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* FEATURES GRID */
.features-section {
    padding: 3rem 0 5rem;
    background: var(--bg-gray);
}

.features-count {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.features-count span {
    font-weight: 700;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(29, 78, 216, 0.04), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feat-card:hover::after {
    opacity: 1;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.feat-card[data-role~="gestor"]::before {
    background: linear-gradient(90deg, #1d4ed8, #3b82f6);
}

.feat-card[data-role~="passageiro"]::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.feat-card[data-role~="excursionista"]::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.feat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(29, 78, 216, 0.2);
}

.feat-card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feat-card:hover .feat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feat-card[data-role~="gestor"] .feat-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.1);
}

.feat-card[data-role~="passageiro"] .feat-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.feat-card[data-role~="excursionista"] .feat-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #8b5cf6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1);
}

.feat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.feat-card[data-role~="gestor"] .feat-tag {
    background: #dbeafe;
    color: #1d4ed8;
}

.feat-card[data-role~="passageiro"] .feat-tag {
    background: #d1fae5;
    color: #059669;
}

.feat-card[data-role~="excursionista"] .feat-tag {
    background: #ede9fe;
    color: #7c3aed;
}

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

.feat-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.65;
}

.feat-card.hidden {
    display: none;
}

/* RESPONSIVE */
@media(max-width:992px) {
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media(max-width:600px) {
    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
