
/* Help Page Styles - Redesigned */

/* Layout & Container */
.help-container {
    padding-top: 60px; /* Navbar height */
    min-height: 100vh;
    background-color: var(--primary-bg);
    position: relative;
    padding-bottom: 80px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(43, 76, 255, 0.05) 0%, transparent 40%);
}

.help-content-layout {
    margin-top: 40px;
    position: relative;
}

/* ====================
   Hero Section - Ultra Modern
   ==================== */
.help-search-section {
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #0f1218 0%, #000000 100%);
}

/* Grid Overlay Background */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Horizon Glow */
.help-search-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.help-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Modern Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Typography */
.help-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.help-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
}

/* Search Container 3D Effect */
.search-container {
    width: 100%;
    max-width: 640px;
    perspective: 1000px;
}

.search-box {
    position: relative;
    width: 100%;
    height: 64px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.search-box:focus-within {
    background: rgba(30, 30, 40, 0.8);
    border-color: var(--accent-color);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(0, 229, 255, 0.2),
        0 0 30px rgba(0, 229, 255, 0.1);
    transform: translateY(-2px) scale(1.01);
}

.search-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 15px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    height: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-box input:focus {
    outline: none;
}

.search-shortcut {
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

/* Quick Tags */
.hero-quick-tags {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero-quick-tags:hover {
    opacity: 1;
}

.hero-quick-tags a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.hero-quick-tags a:hover {
    color: var(--accent-color);
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
}

/* ====================
   Category Tabs
   ==================== */
.help-categories-bar {
    padding: 0 0 50px;
    position: relative;
    z-index: 2;
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px; /* For hover effects */
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    padding: 12px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-pill.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

/* ====================
   Help Cards Grid
   ==================== */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.help-card {
    background: rgba(30, 30, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Card Hover Effect */
.help-card:hover {
    transform: translateY(-8px);
    background: rgba(35, 35, 45, 0.6);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.05);
}

.help-card:hover .help-card-image {
    transform: scale(1.05);
}

.help-card:hover .card-arrow {
    transform: translateX(5px);
    color: var(--accent-color);
    opacity: 1;
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(30, 30, 40, 1), transparent);
}

.help-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.help-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-top: -20px; /* Overlap slightly with image gradient */
}

.help-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.help-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3);
}

.help-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.help-card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.help-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-meta i {
    font-size: 12px;
}

.card-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0.5;
}

/* ====================
   Empty State
   ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.2;
    color: var(--accent-color);
}

.empty-state p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* ====================
   Responsive
   ==================== */
@media (max-width: 900px) {
    .help-title {
        font-size: 36px;
    }
    
    .search-wrapper input {
        height: 60px;
        font-size: 16px;
    }
    
    .search-btn {
        width: 44px;
        height: 44px;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-pills {
        justify-content: flex-start;
        padding-bottom: 20px;
    }
}

/* Floating Back to Top (Unified Style) */
.floating-back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    z-index: 990;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.floating-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

@media (max-width: 768px) {
    .floating-back-to-top {
        right: 20px;
        bottom: 80px; /* Avoid mobile navbar if present */
    }
}
