/*
Theme Name: Onyx Nightshade
Theme URI: https://onyxnightshade.com
Author: ONYX NIGHTSHADE Team
Description: Professional dark trading robot theme with purple/blue/teal color scheme
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: onyx-nightshade
*/

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #06071a;
    --bg-secondary: #0d0e2a;
    --bg-card: rgba(13, 20, 50, 0.85);
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-teal: #14b8a6;
    --color-cyan: #06b6d4;
    --color-gold: #f59e0b;
    --color-green: #10b981;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-card: rgba(139, 92, 246, 0.3);
    --gradient-main: linear-gradient(135deg, #8b5cf6, #3b82f6, #14b8a6);
    --gradient-bg: linear-gradient(180deg, #06071a 0%, #0d0e2a 100%);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
}
a { color: var(--color-teal); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-cyan); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
#onyx-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 7, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 65px;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.15);
    will-change: transform;
    transform: translateZ(0);
}
.onyx-logo { display: flex; align-items: center; gap: 10px; margin-right: 20px; text-decoration: none; }
.onyx-logo img { width: 45px; height: 45px; border-radius: 8px; border: 1px solid var(--color-purple); }
.onyx-logo span {
    font-size: 22px; font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: 1px;
}
.onyx-nav-menu { display: flex; align-items: center; gap: 5px; list-style: none; flex: 1; }
.onyx-nav-menu li a {
    color: var(--text-primary); padding: 8px 14px; border-radius: 6px;
    font-size: 14px; font-weight: 500; display: flex; align-items: center;
    gap: 6px; transition: all 0.3s; white-space: nowrap;
}
.onyx-nav-menu li a:hover,
.onyx-nav-menu li.current-menu-item a { color: var(--color-teal); background: rgba(20, 184, 166, 0.1); }

.onyx-nav-right { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.onyx-username-display { color: var(--color-teal); font-size: 14px; display: flex; align-items: center; gap: 6px; }

.btn-logout, .btn-login {
    padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; border: 2px solid var(--color-teal);
    background: transparent; color: var(--color-teal); text-decoration: none;
}
.btn-logout:hover, .btn-login:hover {
    background: var(--color-teal); color: #000;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 24px;
    cursor: pointer; padding: 5px; margin-left: auto;
}

/* ===== HERO ===== */
.onyx-hero { position: relative; min-height: 500px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid rgba(139, 92, 246, 0.2); }
.onyx-hero-bg { position: absolute; inset: 0; background-image: url('images/banner-robot.png'); background-size: cover; background-position: center right; opacity: 0.85; }
.onyx-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,7,26,0.95) 40%, rgba(6,7,26,0.3) 100%); }
.onyx-hero-content { position: relative; z-index: 2; max-width: 600px; padding: 60px 40px; }
.onyx-hero-content h1 { font-size: 3.5rem; font-weight: 900; color: var(--color-gold); letter-spacing: 2px; line-height: 1.1; margin-bottom: 15px; text-shadow: 0 0 30px rgba(245, 158, 11, 0.3); }
.onyx-hero-content .tagline { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 15px; font-weight: 300; }
.onyx-hero-content .hashtags { font-size: 1rem; color: var(--color-gold); font-weight: 600; margin-bottom: 10px; }
.onyx-hero-content .subtitle { font-size: 1rem; color: var(--text-secondary); font-style: italic; margin-bottom: 30px; }
.onyx-hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 14px 32px; background: var(--gradient-main); color: white; border: none;
    border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer;
    text-decoration: none; display: inline-block; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6); color: white; }
.btn-secondary {
    padding: 14px 32px; background: transparent; color: var(--color-teal);
    border: 2px solid var(--color-teal); border-radius: 8px; font-size: 16px;
    font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s;
}
.btn-secondary:hover { background: var(--color-teal); color: #000; transform: translateY(-2px); }

/* ===== CARDS ===== */
.onyx-section { padding: 70px 0; }
.onyx-section-title { text-align: center; margin-bottom: 50px; }
.onyx-section-title h2 {
    font-size: 2.2rem; font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px;
}
.onyx-section-title p { color: var(--text-secondary); font-size: 1.1rem; }
.onyx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.onyx-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 30px; transition: all 0.3s; backdrop-filter: blur(10px); }
.onyx-card:hover { border-color: var(--color-teal); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(20, 184, 166, 0.15); }
.onyx-card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.onyx-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--color-teal); margin-bottom: 10px; }
.onyx-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ===== PRICING ===== */
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 35px; text-align: center; transition: all 0.3s; position: relative; overflow: hidden; }
.pricing-card.featured { border-color: var(--color-teal); box-shadow: 0 0 40px rgba(20, 184, 166, 0.2); }
.pricing-card.featured::before { content: 'POPULAR'; position: absolute; top: 15px; right: -25px; background: var(--color-teal); color: #000; font-size: 11px; font-weight: 800; padding: 4px 35px; transform: rotate(45deg); }
.pricing-name { font-size: 1.4rem; font-weight: 800; color: var(--color-teal); margin-bottom: 20px; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--text-primary); margin-bottom: 5px; }
.pricing-price span { font-size: 1rem; color: var(--text-secondary); }
.pricing-period { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 25px; }
.pricing-features { list-style: none; margin-bottom: 30px; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.95rem; }
.pricing-features li::before { content: '✓ '; color: var(--color-teal); font-weight: bold; }

/* ===== FOOTER ===== */
#onyx-footer { background: rgba(6, 7, 26, 0.98); border-top: 1px solid rgba(139, 92, 246, 0.2); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.footer-card { background: var(--bg-card); border-radius: 16px; padding: 30px; border: 1px solid var(--border-card); }
.footer-card-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.footer-card.products .footer-card-title { color: var(--color-teal); border-bottom: 1px solid rgba(20,184,166,0.3); padding-bottom: 15px; }
.footer-card.support .footer-card-title { color: var(--color-blue); border-bottom: 1px solid rgba(59,130,246,0.3); padding-bottom: 15px; }
.footer-card.legal .footer-card-title { color: var(--color-gold); border-bottom: 1px solid rgba(245,158,11,0.3); padding-bottom: 15px; }
.footer-links { list-style: none; }
.footer-links li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.footer-links li::before { content: '►'; font-size: 10px; color: var(--color-teal); }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--color-teal); }
.footer-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 30px; }
.footer-contact-item .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--color-purple); margin-bottom: 5px; }
.footer-contact-item .value { color: var(--text-secondary); font-size: 0.9rem; }
.footer-social { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 20px 0; }
.social-btn { width: 45px; height: 45px; border-radius: 50%; background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 18px; transition: all 0.3s; text-decoration: none; }
.social-btn:hover { background: var(--color-purple); border-color: var(--color-purple); transform: scale(1.1); color: white; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); font-size: 0.85rem; }
.footer-bottom span { color: #ef4444; }

/* ===== FORMS ===== */
.onyx-form-container { max-width: 500px; margin: 60px auto; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 40px; }
.onyx-form-container h2 { text-align: center; font-size: 1.8rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 8px; color: var(--text-primary); font-size: 1rem; transition: border-color 0.3s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--bg-secondary); }
.btn-submit { width: 100%; padding: 14px; background: var(--gradient-main); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }

/* ===== PAGE BANNER ===== */
.page-banner { background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(20,184,166,0.1)); border-bottom: 1px solid rgba(139,92,246,0.2); padding: 50px 40px; text-align: center; }
.page-banner h1 { font-size: 2.5rem; font-weight: 900; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.page-banner p { color: var(--text-secondary); font-size: 1.1rem; }

/* ===== ALERTS ===== */
.onyx-alert { padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.onyx-alert.success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #10b981; }
.onyx-alert.error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #ef4444; }
.onyx-alert.info { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.4); color: #3b82f6; }

/* ===== ADMIN BAR FIX ===== */
body.admin-bar #onyx-navbar { top: 32px; }

/* ===== PAGE SPECIFIC ===== */
.onyx-page-content { padding: 60px 0; }
.wp-content { color: var(--text-primary); line-height: 1.8; }
.wp-content h2 { color: var(--color-teal); margin: 30px 0 15px; }
.wp-content p { margin-bottom: 15px; color: var(--text-secondary); }

/* ===== TICKET SYSTEM ===== */
.ticket-list { list-style: none; }
.ticket-item { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 10px; padding: 20px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.ticket-status { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.ticket-status.open { background: rgba(16,185,129,0.2); color: #10b981; }
.ticket-status.closed { background: rgba(239,68,68,0.2); color: #ef4444; }
.ticket-status.pending { background: rgba(245,158,11,0.2); color: #f59e0b; }

/* ===== AI FLOATING BUTTON ===== */
#ai-floating-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    background: linear-gradient(145deg, #1a1a1a, #000000) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 15px rgba(139,92,246,0.4) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(139,92,246,0.6) !important;
    text-decoration: none !important;
    animation: ai-pulse 2s infinite !important;
}
#ai-floating-button img { width: 38px !important; height: 38px !important; object-fit: contain !important; border-radius: 50% !important; }
.tooltip-text {
    visibility: hidden; background-color: #030312 !important; color: #fff !important;
    text-align: center; border-radius: 8px; padding: 6px 12px !important;
    position: absolute; right: 70px; font-family: 'Rajdhani', sans-serif !important;
    font-size: 12px !important; font-weight: bold !important; white-space: nowrap;
    opacity: 0; transition: opacity 0.3s; border: 1px solid #8b5cf6 !important; pointer-events: none;
}
#ai-floating-button:hover .tooltip-text { visibility: visible; opacity: 1; }

@keyframes ai-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .onyx-nav-menu { display: none; }
    .onyx-nav-right { display: none !important; }

    .onyx-hero-content h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact { grid-template-columns: 1fr; }
    .onyx-grid-3 { grid-template-columns: 1fr; }

    #ai-floating-button {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
    #ai-floating-button img { width: 32px !important; height: 32px !important; }
    .tooltip-text { display: none !important; }
}

@media (max-width: 480px) {
    #ai-floating-button { bottom: 15px !important; right: 15px !important; width: 50px !important; height: 50px !important; }
    #ai-floating-button img { width: 28px !important; height: 28px !important; }
}

@media (min-width: 769px) {
    #ai-floating-button:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 20px rgba(139,92,246,0.7) !important;
    }
}

/* ===== SCREEN READER ONLY ===== */
/* ===== MOBILE MENU BUTTON FIX ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #8b5cf6;
    border-radius: 2px;
    transition: all .3s;
}

/* نمایش دکمه منو فقط در موبایل */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
}