/* ============================================
   PAGE CONTENT STYLES
   Supplemental stylesheet for help-center.html
   and screenshots.html — bridges the gap between
   new-styles.css (header/footer) and the page-
   specific content originally styled by styles.css.
   ============================================ */

/* --------------------------------------------
   CSS VARIABLE ALIASES
   Map old styles.css variable names so all
   page-specific rules resolve correctly.
   -------------------------------------------- */
:root {
    --primary-green:    #6BA428;
    --dark-green:       #4A7C26;
    --light-green:      #9CC69F;
    --gray-dark:        #424242;
    --gray-medium:      #757575;
    --gray-light:       #E0E0E0;
    --white:            #FFFFFF;
    --shadow:           0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg:        0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius:    8px;
    --border-radius-lg: 16px;
    --transition:       all 0.3s ease;
}

/* --------------------------------------------
   SHARED SECTION OVERRIDES
   -------------------------------------------- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* .features used for FAQ and Report Bug sections */
.features {
    padding: 80px 0;
    background: #ffffff;
}

/* .download used for Contact Support and Account Recovery */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
}

.download .section-title,
.download .section-subtitle {
    color: var(--white);
}

/* Fix new-styles.css global img { height: auto } which breaks
   the fixed-height screenshot gallery wrapper layout */
.screenshots-gallery img,
.screenshot-wrapper img {
    height: 100%;
}

/* --------------------------------------------
   HELP CENTER — HERO
   -------------------------------------------- */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gray-dark) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: row;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Decorative phone mock in help-center hero */
.app-screenshot {
    width: 100%;
    height: 100%;
    background-image: url('../images/heros/main-menu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --------------------------------------------
   HELP CENTER — FAQ CARDS
   -------------------------------------------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.help-card:nth-child(1) { animation-delay: 0.1s; }
.help-card:nth-child(2) { animation-delay: 0.2s; }
.help-card:nth-child(3) { animation-delay: 0.3s; }
.help-card:nth-child(4) { animation-delay: 0.4s; }
.help-card:nth-child(5) { animation-delay: 0.5s; }
.help-card:nth-child(6) { animation-delay: 0.6s; }

.help-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.help-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
}

.help-description {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.help-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.help-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* --------------------------------------------
   HELP CENTER — SUPPORT CARDS
   -------------------------------------------- */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-items: center;
}

.support-options.single-support {
    grid-template-columns: minmax(280px, 500px);
    justify-content: center;
}

.support-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    transition: var(--transition);
    width: 100%;
}

.support-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.support-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.support-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.support-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--white) !important;
    display: block !important;
    margin: 0 auto !important;
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: var(--white) !important;
}

/* --------------------------------------------
   HELP CENTER — BUG REPORT
   -------------------------------------------- */
.bug-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.bug-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.bug-checklist {
    list-style: none;
    padding: 0;
}

.bug-checklist li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 2rem;
    color: var(--gray-medium);
    line-height: 1.6;
}

.bug-checklist li:last-child { border-bottom: none; }

.bug-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--primary-green);
    font-weight: 600;
}

.bug-report-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-align: center;
}

.bug-report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.bug-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.bug-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.bug-description {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.bug-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: block;
    margin: 0 auto;
}

.bug-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* --------------------------------------------
   SCREENSHOTS — HERO
   -------------------------------------------- */
.screenshots-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.screenshots-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --------------------------------------------
   SCREENSHOTS — GALLERY
   -------------------------------------------- */
.screenshots-gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-section { margin-bottom: 80px; }
.gallery-section:last-child { margin-bottom: 0; }

.gallery-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-description {
    font-size: 1.125rem;
    color: var(--gray-medium);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--gray-light);
    width: 320px;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-green);
}

.screenshot-card:nth-child(1) { animation-delay: 0.1s; }
.screenshot-card:nth-child(2) { animation-delay: 0.2s; }
.screenshot-card:nth-child(3) { animation-delay: 0.3s; }
.screenshot-card:nth-child(4) { animation-delay: 0.4s; }
.screenshot-card:nth-child(5) { animation-delay: 0.5s; }
.screenshot-card:nth-child(6) { animation-delay: 0.6s; }
.screenshot-card:nth-child(7) { animation-delay: 0.7s; }

/* Fixed height — overrides new-styles.css global img { height: auto } */
.screenshot-wrapper {
    position: relative;
    width: 300px;
    height: 550px;
    margin: 10px auto;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.screenshot-img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    background: #000000;
    border: 2px solid #6BA428;
    border-radius: 9px;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.screenshot-card:hover .screenshot-overlay { transform: translateY(0); }
.screenshot-card:hover .screenshot-img    { transform: scale(1.05); }

.screenshot-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.screenshot-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    color: var(--white);
}

/* --------------------------------------------
   SCREENSHOTS — DOWNLOAD SECTION
   -------------------------------------------- */
.download-content { text-align: center; }

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.download-btn {
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-btn img {
    height: 60px !important;
    width: auto;
    display: block;
}

/* --------------------------------------------
   LIGHTBOX
   -------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 800px);
    max-height: 90vh;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    margin: 0;
}

.lightbox-img {
    width: 100%;
    max-height: calc(90vh - 120px);
    min-height: 300px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
    padding: 20px;
    box-sizing: border-box;
    height: auto !important;
}

.lightbox-info { padding: 2rem; text-align: center; }

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.lightbox-description { color: var(--gray-medium); line-height: 1.6; }

.lightbox-nav {
    position: fixed;
    top: 50%; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10002;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: var(--primary-green); transform: scale(1.1); }

.lightbox-prev:disabled,
.lightbox-next:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

/* --------------------------------------------
   ANIMATIONS
   -------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------
   RESPONSIVE — HELP CENTER
   -------------------------------------------- */
@media (max-width: 768px) {
    .hero-container   { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-title       { font-size: 2.5rem; }
    .hero-buttons     { justify-content: center; flex-direction: column; align-items: center; }
    .hero-image       { display: none; }
    .help-grid        { grid-template-columns: 1fr; gap: 1.5rem; }
    .help-card        { padding: 2rem; }
    .support-options  { grid-template-columns: 1fr; }
    .support-options.single-support { grid-template-columns: 1fr; }
    .bug-report-grid  { grid-template-columns: 1fr; gap: 2rem; }
    .bug-report-card  { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero-title       { font-size: 2rem; }
    .section-title    { font-size: 2rem; }
    .help-card        { padding: 1.5rem; }
    .support-card     { padding: 2rem 1.5rem; }
    .bug-report-card  { padding: 1.5rem; }
}

/* --------------------------------------------
   RESPONSIVE — SCREENSHOTS
   -------------------------------------------- */
@media (max-width: 768px) {
    .screenshots-hero    { padding: 100px 0 60px; }
    .gallery-grid        { grid-template-columns: repeat(auto-fit, 280px); gap: 1.5rem; }
    .screenshot-card     { width: 280px; }
    .screenshot-wrapper  { width: 260px; height: 460px; margin: 10px auto; }
    .gallery-section     { margin-bottom: 60px; }
    .gallery-title       { font-size: 1.75rem; }
    .gallery-description { font-size: 1rem; margin-bottom: 2rem; }
    .download-buttons    { flex-direction: column; align-items: center; }
    .lightbox-content    { max-width: 95vw; max-height: 95vh; }
    .lightbox            { padding: 1rem; }
    .lightbox-info       { padding: 1.5rem; }
    .lightbox-title      { font-size: 1.25rem; }
    .lightbox-nav        { padding: 0 30px; }
    .lightbox-prev,
    .lightbox-next       { width: 40px; height: 40px; font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .gallery-grid        { grid-template-columns: 1fr; }
    .screenshot-card     { width: 250px; margin: 0 auto; }
    .screenshot-wrapper  { width: 230px; height: 400px; margin: 10px auto; }
    .screenshots-hero    { padding: 80px 0 40px; }
    .gallery-title       { font-size: 1.5rem; }
}
