/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #25D366;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo h1 {
    font-size: 24px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 250px;
}

.search-box button {
    padding: 8px 15px;
    background: #128C7E;
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #075E54;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.search-box-large input {
    width: 500px;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box-large button {
    padding: 15px 30px;
    background: #075E54;
    border: none;
    border-radius: 0 5px 5px 0;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Cards de Grupos */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.group-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.group-image {
    height: 200px;
    overflow: hidden;
}

.group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-info {
    padding: 20px;
}

.group-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.group-info h3 a {
    color: #333;
    text-decoration: none;
}

.group-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.category a {
    color: #25D366;
    text-decoration: none;
}

.group-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.btn-whatsapp {
    display: inline-block;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Categorias */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card a {
    text-decoration: none;
    color: #333;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.grupos-count {
    color: #25D366;
    font-size: 14px;
}

/* Página de Categoria */
.breadcrumb {
    padding: 20px 0;
    color: #666;
}

.breadcrumb a {
    color: #25D366;
    text-decoration: none;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.category-description {
    color: #666;
    line-height: 1.8;
}

/* Página do Grupo */
.group-single {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.group-single-image {
    margin-bottom: 20px;
}

.group-single-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
}

.group-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
}

.group-description-full {
    margin: 20px 0;
    line-height: 1.8;
}

.group-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.btn-whatsapp-large {
    display: inline-block;
    padding: 15px 40px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background 0.3s;
}

.btn-whatsapp-large:hover {
    background: #128C7E;
}

.btn-share {
    padding: 15px 30px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    background: #e9ecef;
}

.group-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #25D366;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: #25D366;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
}

/* Responsividade */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box form {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .search-box-large input {
        width: 100%;
    }
    
    .groups-grid {
        grid-template-columns: 1fr;
    }
    
    .group-actions {
        flex-direction: column;
    }
}

/* Utilitários */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #25D366;
    color: white;
}

.btn-primary:hover {
    background: #128C7E;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #25D366;
    color: white;
    border-color: #25D366;
}
/* Cards clicáveis */
.group-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.group-card h3 a, 
.group-card .category a,
.group-card .btn-whatsapp {
    pointer-events: auto;
}

/* Para evitar que o clique no botão ou categoria feche o card */
.group-card .btn-whatsapp,
.group-card .category a {
    position: relative;
    z-index: 2;
}
.no-results {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 18px;
}