/* Hacks.css - Estilos específicos para a página de hacks */
:root {
    --hack-card-bg: rgba(20, 20, 25, 0.8);
    --hack-border: rgba(255, 0, 0, 0.2);
    --hack-shadow: 0 10px 30px rgba(255, 0, 0, 0.15);
}

/* Hero Section para Hacks */
.hacks-hero {
    padding: 180px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.9) 50%,
        rgba(0, 255, 136, 0.05) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hacks-hero::before {
    content: 'HACKS';
    position: absolute;
    font-size: 300px;
    font-weight: 900;
    color: rgba(255, 0, 0, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hacks-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hacks-hero .subtitle {
    color: var(--accent);
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hacks-hero p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid var(--hack-border);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: var(--shadow-glow);
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filtros e categorias */
.filters-section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-tab {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--gradient-red);
    color: white;
    border-color: var(--primary);
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.search-input::placeholder {
    color: var(--text-dim);
}

/* Grid de hacks */
.hacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.hack-card {
    background: var(--hack-card-bg);
    border: 1px solid var(--hack-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    min-height: 520px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.hack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-red);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hack-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--hack-shadow);
}

.hack-card:hover::before {
    opacity: 1;
}

.hack-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    min-height: 70px;
}

.hack-game-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 5px;
}

.hack-title {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 120px;
}

.hack-title h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hack-category {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

/* Badges coloridas para hacks - CORRIGIDO */
.badge-container {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    width: 110px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* CORREÇÃO: Cor do texto para badges claras */
.badge-red { 
    background: linear-gradient(135deg, #ff0000, #ff3333); 
    color: white !important;
}
.badge-blue { 
    background: linear-gradient(135deg, #007bff, #00a2ff); 
    color: white !important;
}
.badge-green { 
    background: linear-gradient(135deg, #00ff88, #00cc66); 
    color: #111 !important;
}
.badge-gold { 
    background: linear-gradient(135deg, #ffd700, #ffaa00); 
    color: #333 !important;
    font-weight: 900;
}
.badge-orange { 
    background: linear-gradient(135deg, #ff9900, #ff6600); 
    color: white !important;
}
.badge-purple { 
    background: linear-gradient(135deg, #9d4edd, #7b2cbf); 
    color: white !important;
}
.badge-cyan { 
    background: linear-gradient(135deg, #00ffff, #00cccc); 
    color: #333 !important;
    font-weight: 900;
}
.badge-pink { 
    background: linear-gradient(135deg, #ff66b2, #ff3388); 
    color: white !important;
}
.badge-yellow { 
    background: linear-gradient(135deg, #ffff00, #ffcc00); 
    color: #333 !important;
    font-weight: 900;
}
.badge-brown { 
    background: linear-gradient(135deg, #8b4513, #a0522d); 
    color: white !important;
}
.badge-silver { 
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0); 
    color: #000 !important;
    font-weight: 900;
}
.badge-dark-red { 
    background: linear-gradient(135deg, #8b0000, #660000); 
    color: white !important;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-online { background: #00ff88; box-shadow: 0 0 10px #00ff88; }
.status-offline { background: #ff0000; box-shadow: 0 0 10px #ff0000; }
.status-maintenance { background: #ff9900; box-shadow: 0 0 10px #ff9900; }

/* Lista de features */
.hack-features {
    margin: 25px 0;
    flex: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-item::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Informações do hack */
.hack-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hack-price {
    text-align: center;
    flex: 1;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: var(--shadow-glow);
    line-height: 1;
}

.price-duration {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 5px;
}

.hack-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    margin-left: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.detail-item i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

/* Botões de ação */
.hack-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-details {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-red);
    color: white;
    border-color: var(--primary);
}

/* FAQ Section */
.faq-section {
    margin-top: 100px;
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.faq-answer {
    color: var(--text-dim);
    line-height: 1.6;
}

/* No Hacks Message */
.no-hacks {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(255, 0, 0, 0.3);
}

.no-hacks h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.no-hacks p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Responsividade para hacks - CORRIGIDO */
@media (max-width: 1200px) {
    .hacks-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .hacks-hero::before {
        font-size: 200px;
    }
}

@media (max-width: 992px) {
    .hacks-hero h1 {
        font-size: 3.5rem;
    }
    
    .hack-card {
        min-height: 500px;
    }
    
    .badge-container {
        width: 100px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .hacks-hero {
        padding: 150px 0 80px;
    }
    
    .hacks-hero h1 {
        font-size: 3rem;
    }
    
    .hacks-hero .subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .hacks-hero::before {
        font-size: 150px;
    }
    
    .hacks-grid {
        grid-template-columns: 1fr;
    }
    
    .hack-header {
        flex-direction: row;
        padding-right: 0;
    }
    
    .hack-title {
        padding-right: 100px;
    }
    
    .badge-container {
        position: absolute;
        top: 0;
        right: 0;
        flex-direction: column;
        width: 90px;
        margin-top: 0;
    }
    
    .badge {
        width: 100%;
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .hack-game-icon {
        font-size: 2.2rem;
        margin-right: 12px;
    }
    
    .hack-title h3 {
        font-size: 1.4rem;
    }
    
    .hack-actions {
        flex-direction: column;
    }
    
    .hack-info {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hack-details {
        margin-left: 0;
    }
    
    .faq-section {
        padding: 40px 20px;
    }
    
    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hacks-hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
    
    .hack-card {
        padding: 20px;
        min-height: auto;
    }
    
    .hack-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hack-title {
        padding-right: 0;
        width: 100%;
        margin-top: 15px;
    }
    
    .hack-title h3 {
        font-size: 1.3rem;
        min-height: auto;
    }
    
    .badge-container {
        position: static;
        flex-direction: row;
        width: 100%;
        margin-top: 10px;
        justify-content: flex-start;
        gap: 6px;
    }
    
    .badge {
        width: auto;
        flex: 1;
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    
    .hack-game-icon {
        font-size: 2rem;
        margin-right: 0;
        align-self: flex-start;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .hacks-hero::before {
        font-size: 100px;
    }
}

@media (max-width: 480px) {
    .hack-title h3 {
        font-size: 1.2rem;
    }
    
    .badge-container {
        flex-wrap: wrap;
    }
    
    .badge {
        flex: none;
        min-width: 70px;
    }
    
    .hack-features {
        margin: 15px 0;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
}

/* Animação específica para hacks */
@keyframes hackPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15); }
    50% { box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3); }
}

.hack-card:hover {
    animation: hackPulse 1.5s infinite;
}

/* Ajustes para textos longos */
.hack-title h3 {
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Garantir que o card tenha altura consistente */
.hack-card {
    display: flex;
    flex-direction: column;
}

.hack-features {
    flex-grow: 1;
}