/*
 * Support Page Styles
 * Page-specific styling for the support.php page
 */

/* Support Page Hero */
.support-page .hero-section {
    background: linear-gradient(135deg, var(--cp-black) 0%, #1a1a1a 100%);
    position: relative;
    min-height: 60vh; /* Consistent with other pages */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Ensure hero sits below fixed header - same as home page */
    margin-top: -70px;
    padding-top: 70px;
    padding-bottom: 4rem;
}

.support-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.support-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.support-page .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.support-page .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Support Page Sections */
.support-page .section {
    text-align: center;
    padding: 4rem 0;
}

.support-page .section .container {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.support-page .section h2 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.2rem;
}

.support-page .section .lead {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Quick Help Cards */
.support-page .feature-card {
    background: var(--cp-shade);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto;
}

/* Ensure Quick Help section cards align properly on one line */
.support-page .row .col-lg-4 {
    display: flex;
    flex-direction: column;
}

.support-page .row .col-lg-4 .feature-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.support-page .row .col-lg-4 .feature-card .btn {
    margin-top: auto;
}

.support-page .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cp-red-primary), var(--cp-red-secondary));
}

.support-page .feature-card:hover {
    background: var(--cp-focus);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
}

.support-page .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(1) brightness(1.5);
}

.support-page .feature-card h3,
.support-page .feature-card h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.support-page .feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* FAQ Section Styling */
.support-page #faq {
    text-align: left;
}

.support-page #faq .container {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.support-page #faq h2 {
    text-align: center;
}

.support-page #faq .lead {
    text-align: center;
}

.support-page #faq h3 {
    color: var(--white);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--cp-red-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* FAQ Items */
.support-page .faq-item {
    background: var(--cp-shade);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.support-page .faq-item:hover {
    border-color: var(--cp-red-primary);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.support-page .faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--cp-shade);
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-page .faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cp-red-primary);
    transition: all 0.3s ease;
}

.support-page .faq-question:hover {
    background: var(--cp-focus);
}

.support-page .faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.support-page .faq-question h5 {
    color: var(--white);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-right: 3rem;
}

.support-page .faq-answer {
    padding: 0 2rem 1.5rem;
    display: none;
    background: var(--cp-black);
}

.support-page .faq-answer.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-page .faq-answer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
    max-width: 720px;
}

.support-page .faq-answer ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 1rem 0;
    padding-left: 2rem;
}

.support-page .faq-answer li {
    margin-bottom: 0.5rem;
}

.support-page .faq-answer strong {
    color: var(--white);
}

.support-page .faq-answer code {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cp-red-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Section Spacing */
.support-page .row.mb-5 {
    margin-bottom: 4rem !important;
}

/* Contact Support Cards */
.support-page .feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Contact Support Section Styling */
.support-page .section:last-of-type .container {
    max-width: 800px;
}

.support-page .section:last-of-type .row {
    justify-content: center;
}

.support-page .section:last-of-type .col-md-6 {
    max-width: 350px;
}

/* Quick Navigation for FAQ */
.support-page .faq-nav {
    background: var(--cp-shade);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.support-page .faq-nav h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.support-page .faq-nav .nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-page .faq-nav .nav-link {
    background: var(--cp-black);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.support-page .faq-nav .nav-link:hover {
    background: var(--cp-red-primary);
    border-color: var(--cp-red-primary);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Support Stats */
.support-page .support-stats {
    background: var(--cp-shade);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
}

.support-page .support-stats h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 2rem;
}

.support-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.support-page .stat-item {
    text-align: center;
}

.support-page .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cp-red-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.support-page .stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Isolate header and footer from page centering */
.support-page header,
.support-page .header,
.support-page footer,
.support-page .footer {
    text-align: left !important;
}

.support-page header .container,
.support-page .header .container,
.support-page footer .container,
.support-page .footer .container {
    text-align: left !important;
}

.support-page header .row,
.support-page .header .row,
.support-page footer .row,
.support-page .footer .row {
    justify-content: flex-start !important;
}

/* Responsive Design */
@media (min-width: 992px) {
    /* Ensure cards align on one line on large screens */
    .support-page .row .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .support-page .feature-card {
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .support-page .hero-section {
        margin-top: -55px; /* Adjust for mobile body padding */
        padding-top: 55px;
        min-height: 50vh; /* Smaller on mobile */
    }
    
    .support-page .hero-title {
        font-size: 2.5rem;
    }
    
    .support-page .section .container {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .support-page .feature-card {
        margin-bottom: 2rem;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .support-page #faq .container {
        max-width: 95%;
    }
    
    .support-page .faq-item {
        max-width: 100%;
    }
    
    .support-page .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .support-page .faq-question::after {
        right: 1.5rem;
    }
    
    .support-page .faq-question h5 {
        font-size: 1rem;
        padding-right: 2.5rem;
    }
    
    .support-page .faq-answer {
        padding: 0 1.5rem 1.25rem;
    }
    
    .support-page .faq-answer p {
        max-width: 100%;
    }
    
    .support-page #faq h3 {
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .support-page .faq-nav {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .support-page .faq-nav .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .support-page .support-stats {
        max-width: 95%;
        margin: 2rem auto;
    }
    
    .support-page .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .support-page .section:last-of-type .col-md-6 {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .support-page .hero-title {
        font-size: 2rem;
    }
    
    .support-page .hero-section {
        margin-top: -50px; /* Adjust for smallest mobile navbar */
        padding-top: 50px;
    }
    
    .support-page .section .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    .support-page .feature-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .support-page #faq .container {
        max-width: 100%;
    }
    
    .support-page .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .support-page .faq-question::after {
        right: 1.25rem;
        font-size: 1.25rem;
    }
    
    .support-page .faq-answer {
        padding: 0 1.25rem 1rem;
    }
    
    .support-page .support-stats {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    .support-page .faq-nav {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
}
