/* ==========================================================
   SkySoft - Support Page Dedicated Stylesheet
   File Name: support.css
   Font: Cairo
========================================================== */

/* --- Reset & Base Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --dark-bg: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    padding-top: 170px; /* مسافة أمان لمنع تداخل المحتوى مع الهيدر المزدوج */
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   Fixed Header & Navigation Bar (الهيدر الموحد)
========================================================== */

header.header-top-logo {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    padding: 12px 0;
}

/* اللوجو العلوي في المنتصف */
.top-logo {
    text-align: center;
    margin-bottom: 8px;
}

.top-logo img {
    height: 55px;
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.top-logo img:hover {
    transform: scale(1.04);
}

/* شريط التنقل والأزرار */
.navbar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 10px;
}

.navbar-bottom nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.navbar-bottom nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar-bottom nav ul li a:hover,
.navbar-bottom nav ul li a.active {
    color: var(--primary);
}

.navbar-bottom .btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    padding: 8px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    display: inline-block;
}

.navbar-bottom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

/* ==========================================================
   Support Page Layout & Background Glows
========================================================== */

.support-page,
.features-page {
    position: relative;
    padding-top: 30px;
    padding-bottom: 100px;
    min-height: 85vh;
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: #38bdf8;
    top: 5%;
    right: -100px;
}

.glow-2 {
    width: 450px;
    height: 450px;
    background: #818cf8;
    bottom: 5%;
    left: -100px;
}

.page-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px auto;
}

.badge {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.page-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 19px;
    color: var(--text-muted);
}

/* ==========================================================
   Support Channels (كروت قنوات التواصل السريع)
========================================================== */

.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
}

.channel-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15);
}

.channel-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.channel-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.channel-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.channel-btn {
    display: inline-block;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    padding: 9px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.channel-card:hover .channel-btn {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================
   Support Ticket Form (نموذج إرسال التذكرة)
========================================================== */

.ticket-section {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.ticket-section h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.ticket-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.submit-btn {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
}

/* ==========================================================
   FAQ Section (الأسئلة الشائعة)
========================================================== */

.faq-section h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 25px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.faq-item[open] {
    border-color: rgba(2, 132, 199, 0.4);
}

.faq-item summary {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-main);
    outline: none;
}

.faq-item p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================
   Footer
========================================================== */

footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
    font-size: 15px;
}

/* ==========================================================
   Responsive Design
========================================================== */

@media (max-width: 992px) {
    body {
        padding-top: 220px;
    }

    .navbar-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-bottom nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 30px;
    }

    .ticket-section {
        padding: 25px 20px;
    }

    .ticket-form {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .submit-btn {
        grid-column: span 1;
    }
}