/**
 * DESIGN SYSTEM PREMIUM - CSS GLOBAL
 * Estilo unificado para todas as páginas
 */

/* Reset e Base */
.bs-page * { box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.bs-page { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }

/* Page Header */
.bs-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.bs-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.5px;
}
.bs-page-title i {
    font-size: 24px;
    color: #e60012;
}
.bs-page-title .emoji {
    font-size: 28px;
}
.bs-page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.bs-page-count {
    font-size: 13px;
    color: #666;
    padding: 8px 16px;
    background: #f5f5f5;
}
.bs-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}
.bs-breadcrumb a {
    color: #666;
    text-decoration: none;
}
.bs-breadcrumb a:hover {
    color: #e60012;
}
.bs-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* Menu Filtros Premium */
.bs-filter-menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bs-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.bs-filter-btn i {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.25s ease;
}
.bs-filter-btn:hover {
    color: #1a1a1a;
    background: rgba(0,0,0,0.02);
}
.bs-filter-btn:hover i {
    opacity: 1;
}
.bs-filter-btn.active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #e60012;
}
.bs-filter-btn.active i {
    opacity: 1;
    color: #e60012;
}
.bs-view-toggle {
    display: flex;
    margin-left: auto;
    gap: 4px;
    padding: 8px 0;
}
.bs-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e5e5;
}
.bs-view-btn:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ccc;
}
.bs-view-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Grid de Jogos Premium */
.bs-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}
.bs-game-card {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.bs-game-card:hover {
    transform: translateY(-10px);
}
.bs-game-card-link {
    display: block;
    text-decoration: none;
}
.bs-game-card-cover {
    position: relative;
    width: 100%;
    padding-top: 163%;
    overflow: hidden;
    background: #f0f0f0;
}
.bs-game-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.bs-game-card:hover .bs-game-card-cover img {
    transform: scale(1.1);
}

/* Card Overlay */
.bs-card-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bs-game-card:hover .bs-card-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.5);
}
.bs-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #e60012;
    color: #fff;
    font-size: 22px;
    border-radius: 50%;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: 0 8px 30px rgba(230,0,18,0.5);
}
.bs-game-card:hover .bs-dl-btn {
    transform: scale(1);
    opacity: 1;
}
.bs-dl-btn:hover {
    transform: scale(1.15);
    background: #c5000f;
}

/* Card Title */
.bs-game-card-info {
    padding: 16px 0 0;
}
.bs-game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bs-game-card-link:hover .bs-game-card-title {
    color: #e60012;
}
.bs-game-card-meta {
    display: none;
    font-size: 12px;
    color: #888;
    gap: 12px;
}
.bs-game-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.bs-game-card-meta i {
    font-size: 10px;
    color: #ccc;
}

/* List View */
.bs-games-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.bs-games-grid.list-view .bs-game-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 24px;
}
.bs-games-grid.list-view .bs-game-card:hover {
    transform: none;
    background: #fafafa;
    margin: 0 -20px;
    padding: 20px;
}
.bs-games-grid.list-view .bs-game-card-link {
    display: contents;
}
.bs-games-grid.list-view .bs-game-card-cover {
    width: 80px;
    min-width: 80px;
    padding-top: 0;
    height: 120px;
}
.bs-games-grid.list-view .bs-game-card-cover img {
    position: relative;
    width: 80px;
    height: 120px;
}
.bs-games-grid.list-view .bs-game-card:hover .bs-game-card-cover img {
    transform: none;
}
.bs-games-grid.list-view .bs-card-overlay {
    display: none !important;
}
.bs-games-grid.list-view .bs-game-card-info {
    padding: 0;
}
.bs-games-grid.list-view .bs-game-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
}
.bs-games-grid.list-view .bs-game-card-meta {
    display: flex;
}
.bs-games-grid.list-view .bs-game-card-actions {
    display: flex !important;
}
.bs-game-card-actions {
    display: none;
}
/* Botão Baixar - Estilo Premium Vermelho com Glow (igual JOGO ALEATÓRIO) */
.bs-list-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e60012 0%, #ff4757 50%, #e60012 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(230, 0, 18, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bs-list-dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 0, 18, 0.4);
    color: #fff;
}

/* Pagination */
.bs-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    padding: 24px 0;
}
.bs-pagination a,
.bs-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.bs-pagination a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.bs-pagination .current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Empty State */
.bs-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fafafa;
}
.bs-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}
.bs-empty h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 10px;
    font-weight: 600;
}
.bs-empty p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Search Box */
.bs-search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}
.bs-search-form {
    display: flex;
    gap: 0;
    border: 2px solid #1a1a1a;
}
.bs-search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 15px;
    border: none;
    outline: none;
    background: #fff;
}
.bs-search-btn {
    padding: 16px 28px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.bs-search-btn:hover {
    background: #e60012;
}

/* Alphabet Filter */
.bs-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 32px;
    padding: 20px;
    background: #fafafa;
}
.bs-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
}
.bs-letter:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.bs-letter.active {
    background: #e60012;
    color: #fff;
    border-color: #e60012;
}
.bs-letter.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Stats Bar */
.bs-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 16px;
    background: #1a1a1a;
    margin-bottom: 32px;
}
.bs-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}
.bs-stat i {
    color: #e60012;
}
.bs-stat strong {
    color: #fff;
    font-weight: 600;
}

/* Category Cards */
.bs-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.bs-category-card {
    position: relative;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
}
.bs-category-card:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-4px);
}
.bs-category-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
.bs-category-card:hover .bs-category-card-icon {
    transform: scale(1.1);
}
.bs-category-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    transition: color 0.3s ease;
}
.bs-category-card:hover .bs-category-card-title {
    color: #fff;
}
.bs-category-card-count {
    font-size: 12px;
    color: #888;
    transition: color 0.3s ease;
}
.bs-category-card:hover .bs-category-card-count {
    color: #888;
}

/* Tutorial/Keys Cards */
.bs-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bs-content-card {
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}
.bs-content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}
.bs-content-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}
.bs-content-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bs-content-card:hover .bs-content-card-thumb img {
    transform: scale(1.1);
}
.bs-content-card-body {
    padding: 20px;
}
.bs-content-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.4;
}
.bs-content-card:hover .bs-content-card-title {
    color: #e60012;
}
.bs-content-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bs-content-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.bs-content-card-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bs-content-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.bs-content-card-link:hover {
    color: #e60012;
}

/* Responsive */
@media (max-width: 1200px) {
    .bs-games-grid { grid-template-columns: repeat(5, 1fr); }
    .bs-content-grid { grid-template-columns: repeat(2, 1fr); }
    .bs-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .bs-games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .bs-games-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .bs-content-grid { grid-template-columns: 1fr; }
    .bs-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .bs-page-header { flex-direction: column; gap: 16px; align-items: flex-start; }
    .bs-page-title { font-size: 22px; }
    .bs-filter-btn { padding: 12px 16px; font-size: 12px; }
    .bs-stats-bar { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 576px) {
    .bs-games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .bs-game-card-title { font-size: 12px; }
    .bs-alphabet { gap: 4px; }
    .bs-letter { width: 32px; height: 32px; font-size: 12px; }
}
