/* /assets/css/support.css */

/* === Base Theme === */
:root {
    --dark-blue: #1A2A44;
    --accent-blue: #3B82F6;
    --light-blue: #60A5FA;
    --white: #FFFFFF;
    --gray: #D1D5DB;
    --accent-orange: #F28C38; /* Grab-Note's brand color */
}

/* === Hero Section === */
.hero {
    background: linear-gradient(rgba(26, 42, 68, 0.8), rgba(26, 42, 68, 0.8)), url('/projects/grab-it-suite/grab-note/assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 20px;
    color: var(--white);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5em;
    margin: 20px 0 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--gray);
}

.hero a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: bold;
}

.hero a:hover {
    text-decoration: underline;
    color: var(--accent-blue);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #EF6C00;
    transform: scale(1.05);
}


/* === Support Content === */
.support-content {
    padding: 50px 20px;
    background-color: var(--dark-blue);
    color: var(--white);
}

.support-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Support Section === */
.support-section {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2a3b5c; /* Slightly lighter than dark-blue for contrast */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.support-section:hover {
    transform: translateY(-5px);
}

/* === Section Header === */
.section-header {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    position: relative;
    background-color: var(--accent-blue);
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background-color: var(--light-blue);
}

.section-header.active {
    background-color: var(--light-blue);
}

.section-header img.section-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-header:hover img.section-image {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.section-header h2 {
    font-size: 1.5em;
    color: var(--white);
}

/* === Section Content === */
.section-content {
    display: none;
    padding: 20px;
    background-color: #2a3b5c;
}

.section-content.active {
    display: block;
}

.qa-item {
    margin-bottom: 20px;
}

.qa-item h3 {
    font-size: 1.2em;
    color: var(--white);
    margin-bottom: 10px;
}

.qa-item p {
    color: var(--gray);
    line-height: 1.6;
}

.qa-item a {
    color: #fff;
    text-decoration: none;
}
.qa-item a:hover {
    text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 1.3em;
    }

    .hero p {
        font-size: 1em;
    }

    .section-header img.section-image {
        width: 40px;
        height: 40px;
    }

    .section-header h2 {
        font-size: 1.3em;
    }

    .qa-item h3 {
        font-size: 1.1em;
    }

    .qa-item p {
        font-size: 0.9em;
    }
}

/* === QA Image Styling === */
.qa-image-container {
    margin: 10px 0;
    text-align: center; /* Center the image */
}

.qa-image {
    width: 200px; /* Small size */
    height: auto; /* Maintain aspect ratio */
    max-height: 125px; /* Limit height for consistency */
    object-fit: contain; /* Ensure entire image is visible */
    cursor: pointer; /* Indicate clickability */
    border: 2px solid var(--gray); /* Subtle border */
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qa-image.enlarged {
    width: 100%; /* Full width up to max */
    max-width: 640px; /* Max width limit */
    max-height: 400px; /* Max height limit */
    transform: scale(1.05); /* Slight zoom for emphasis */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
    z-index: 1000; /* Ensure it’s above other content */
    position: relative; /* Prevent layout shift */
}

/* === Enlarge Message Styling === */
.enlarge-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center on image */
    background-color: rgba(26, 42, 68, 0.85); /* Dark blue with opacity */
    color: var(--white);
    font-size: 0.9em;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Prevent blocking image clicks */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    z-index: 10; /* Above image but below enlarged image */
}

.qa-image-container:hover .enlarge-message {
    opacity: 1; /* Show on hover */
    transform: translate(-50%, -60%) scale(1.1); /* Upward shift and scale */
}

/* Ensure message is hidden when image is enlarged */
.qa-image.enlarged + .enlarge-message {
    display: none; /* Hide when image is enlarged */
}

/* === Chrome Link Styling === */
.chrome-link {
    color: var(--light-blue); /* Matches theme's light blue */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.chrome-link:hover {
    color: var(--accent-blue); /* Brighter blue on hover */
    text-decoration: underline;
}
