/* ============================================
   BASE STYLES - Shared across all pages
   ============================================ */

html { 
    scroll-behavior: smooth; 
}

body { 
    background-color: #050505; 
    color: #ffffff; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
}

.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}
.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

.overflow-x-hidden { 
    overflow-x: hidden; 
}

.min-h-screen { 
    min-height: 100vh; 
}

.flex-col { 
    flex-direction: column; 
}

.justify-between { 
    justify-content: space-between; 
}


/* ============================================
   HERO BACKGROUND (index.php)
   ============================================ */

.hero-bg {
    background-image: url('https://switch2vault.store/uploads/1781773745_HeroBG.png?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.9) 100%);
    z-index: 1;
}

.hero-bg > * {
    position: relative;
    z-index: 2;
}


/* ============================================
   SEARCH OVERLAY (All pages)
   ============================================ */

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.search-overlay.active {
    display: flex;
}

.search-overlay .search-container {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-overlay input {
    width: 100%;
    padding: 20px 25px;
    font-size: 1.5rem;
    background: #1a1a1a;
    border: 2px solid #dc2626;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.search-overlay input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

.search-overlay input::placeholder {
    color: #6b7280;
}

.search-overlay .close-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

.search-overlay .close-search:hover {
    color: white;
}

.search-overlay .search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    display: none;
}

.search-overlay .search-results .result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a2a;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-overlay .search-results .result-item:hover {
    background: #2a2a2a;
}

.search-overlay .search-results .result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.search-overlay .search-results .result-item .info {
    flex: 1;
}

.search-overlay .search-results .result-item .info .title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.search-overlay .search-results .result-item .info .sub {
    color: #6b7280;
    font-size: 0.8rem;
}

.search-overlay .no-results {
    color: #6b7280;
    text-align: center;
    padding: 30px;
    display: none;
}


/* ============================================
   FAQ PAGE SPECIFIC (faq.php)
   ============================================ */

.faq-item {
    border-bottom: 1px solid rgba(39, 39, 42, 0.6);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    cursor: pointer;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    border-radius: 0.5rem;
}

.faq-question:hover {
    background: rgba(220, 38, 38, 0.05);
}

.faq-question .icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: #dc2626;
    min-width: 20px;
    text-align: center;
}

.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem;
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-answer.open {
    max-height: 800px;
    padding: 0 1rem 1.25rem 1rem;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.faq-answer ul li {
    margin-bottom: 0.3rem;
}

.faq-answer a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: #ef4444;
    text-decoration: underline;
}

.faq-category-tab {
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(39, 39, 42, 0.6);
    color: #a1a1aa;
    background: transparent;
}

.faq-category-tab:hover {
    border-color: #dc2626;
    color: #ffffff;
}

.faq-category-tab.active {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.faq-search-box {
    background: #18181b;
    border: 1px solid rgba(39, 39, 42, 0.6);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    width: 100%;
    color: white;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.faq-search-box:focus {
    outline: none;
    border-color: #dc2626;
}

.faq-search-box::placeholder {
    color: #52525b;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #52525b;
}

.faq-highlight {
    background: rgba(220, 38, 38, 0.2);
    padding: 0 0.2rem;
    border-radius: 0.2rem;
}

.no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #71717a;
}

.no-results i {
    font-size: 3rem;
    color: #27272a;
    display: block;
    margin-bottom: 1rem;
}


/* ============================================
   PRIVACY POLICY & TERMS OF USE (privacy-policy.php, terms-of-use.php)
   ============================================ */

.policy-content h2,
.terms-content h2 {
    color: #dc2626;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.policy-content h3,
.terms-content h3 {
    color: #f4f4f5;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.policy-content p,
.terms-content p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul,
.terms-content ul {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.8;
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content ul li,
.terms-content ul li {
    margin-bottom: 0.3rem;
}

.policy-content .highlight-box,
.terms-content .highlight-box {
    background: rgba(220, 38, 38, 0.05);
    border-left: 3px solid #dc2626;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.terms-content .warning-box {
    background: rgba(234, 179, 8, 0.05);
    border-left: 3px solid #eab308;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}


/* ============================================
   ADMIN PANEL (admin.php)
   ============================================ */

/* Admin body background */
.admin-body {
    background-color: #09090b;
    color: #f4f4f5;
}

/* Character counter for meta description */
.character-count {
    font-size: 10px;
    color: #71717a;
    text-align: right;
}

.character-count.text-red-500 {
    color: #ef4444;
}

.character-count.text-zinc-500 {
    color: #71717a;
}


/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { 
    display: none; 
}
.no-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* Scroll smooth */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Snap scrolling */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-start {
    scroll-snap-align: start;
}

/* Flex shrink */
.flex-shrink-0 {
    flex-shrink: 0;
}