/* Vortex Tags Page Styles */

.vortex-banner-area {
    background: var(--gradient-primary);
    padding: 4rem 0 3rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vortex-banner-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" patternUnits="userSpaceOnUse" width="20" height="20" patternTransform="rotate(45)"><rect width="10" height="20" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23p)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.vortex-banner-area .container {
    position: relative;
    z-index: 1;
    padding-top: 31px;
}

.vortex-banner-area h1 {
    font-size: var(--font-size-4xl);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vortex-banner-area p {
    font-size: var(--font-size-xl);
    margin: 0;
    opacity: 0.95;
    font-weight: 300;
}

.vortex-games-section {
    background: var(--bg-primary);
    padding: 20px 0;
}

.vortex-games-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.vortex-categories-bar {
    margin-bottom: 2rem;
}

.vortex-categories-title {
    padding-bottom: 20px;
}

.vortex-categories-title h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.vortex-section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.vortex-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vortex-category-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.vortex-category-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.vortex-category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.vortex-category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.vortex-card, .vortex-tile, [class*="vortex-similar"] a {
    border-radius: 8px !important;
    transition: all 0.4s ease-out !important;
    position: relative !important;
}

.vortex-card::before, .vortex-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vortex-card:hover::before, .vortex-tile:hover::before {
    opacity: 1;
}

.vortex-card:hover, .vortex-tile:hover, [class*="vortex-similar"] a:hover {
    border-color: #f43f5e !important;
    box-shadow: 0 6px 20px rgba(244,63,94,0.3) !important;
    transform: translateY(-3px) !important;
}

.vortex-img-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.vortex-featured-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 10px;
    background: #f43f5e;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.vortex-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.vortex-img-placeholder img.error + & {
    display: flex;
}

.vortex-placeholder-box {
    text-align: center;
}

.vortex-placeholder-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.vortex-placeholder-text {
    font-size: 12px;
    color: var(--text-muted);
}

.vortex-game-img {
    width: 100%;
    height: auto;
    display: block;
}

.vortex-game-img.error {
    display: none;
}

.vortex-card-info {
    padding: 12px;
    background: white;
    border-radius: 0 0 8px 8px;
}

.vortex-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vortex-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vortex-pagination-area {
    margin-top: 1rem;
}

.vortex-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.vortex-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .vortex-games-container {
        grid-template-columns: repeat(4, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .vortex-banner-area {
        padding: 2.5rem 0 2rem;
    }

    .vortex-banner-area h1 {
        font-size: var(--font-size-2xl);
    }

    .vortex-banner-area p {
        font-size: var(--font-size-base);
    }

    .vortex-games-section {
        padding: 1.5rem 0;
    }

    .vortex-categories-title h1 {
        font-size: var(--font-size-xl);
    }

    .vortex-section-subtitle {
        font-size: var(--font-size-base);
    }

    .vortex-categories-list {
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .vortex-categories-list::-webkit-scrollbar {
        height: 4px;
    }

    .vortex-categories-list::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }

    .vortex-category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .vortex-games-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .vortex-categories-title h1 {
        font-size: var(--font-size-lg);
    }

    .vortex-section-subtitle {
        font-size: var(--font-size-sm);
    }

    .vortex-categories-bar {
        margin-bottom: 1rem;
    }

    .vortex-categories-list {
        gap: 0.375rem;
        padding-bottom: 0.375rem;
    }

    .vortex-category-btn {
        padding: 0.35rem 0.875rem;
        font-size: 0.85rem;
    }

    .vortex-games-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}