/* VipTools.pk Core Styling (v2.6.0 - Fixed Mobile Drawer Desktop Hidden & Star Ratings) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 860px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-4 { padding: 1.5rem; }

/* Buttons & Badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Header & Announcement */
.top-announcement {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.announcement-links a {
    color: #ffffff;
    margin-left: 15px;
    opacity: 0.9;
}

.site-header {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="light"] .site-header {
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-highlight {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--border-color);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

/* STRICT MOBILE DRAWER DESKTOP HIDING RULES */
@media (min-width: 993px) {
    .mobile-drawer,
    .drawer-backdrop,
    .mobile-toggle-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

@media (max-width: 992px) {
    .nav-menu, .announcement-links { display: none !important; }
    .mobile-toggle-btn { display: flex !important; }
    
    .mobile-drawer {
        display: block !important;
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        z-index: 1000;
        transition: left 0.3s ease;
        padding: 24px;
        border-right: 1px solid var(--border-color);
    }

    .mobile-drawer.active {
        left: 0 !important;
    }

    .drawer-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.65);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .drawer-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Tool Interactive Workspace Styling */
.tool-app-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 35px;
}

.tool-input, .tool-textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.tool-input:focus, .tool-textarea:focus {
    border-color: #6366f1;
}

/* PREMIUM FAQ ACCORDION STYLING */
.faq-category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    padding-bottom: 8px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-answer {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    display: none;
    background: var(--bg-primary);
}

.faq-item.active .faq-answer {
    display: block;
}

/* FOOTER STYLING & VERTICAL LIST RULES */
.site-footer {
    background: #090d16;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 65px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-vertical-menu {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-vertical-menu li a {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
}
