/* ============================================
   Verbito - Custom Styles
   Cozy Study color palette
   ============================================ */

:root {
    --vb-green: #53AD8F;
    --vb-green-dark: #539A7E;
    --vb-green-light: #8CDABE;
    --vb-green-lighter: #D6E8D2;
    --vb-forest: #557E83;
    --vb-forest-light: #539A7E;
    --vb-charcoal: #1a1a2e;
    --vb-dark-text: #2E3A3D;
    --vb-muted-text: #6B7280;
    --vb-cream: #F5F7E9;
    --vb-wood: #EFA37E;
    --vb-coral: #B26445;
    --vb-slate: #627C94;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;
    color: var(--vb-dark-text);
    font-family: 'Nunito', system-ui, sans-serif;
    background-color: var(--vb-cream);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

/* ---- Navbar ---- */
.vb-navbar {
    background: linear-gradient(rgba(46, 58, 61, 0.3), rgba(46, 58, 61, 0.3)),
        linear-gradient(135deg, var(--vb-forest) 0%, var(--vb-forest-light) 100%);
    padding: 0.75rem 0;
}

.vb-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.vb-navbar .nav-link:hover {
    color: #fff !important;
}

.vb-navbar .navbar-brand {
    color: #fff !important;
    font-size: 1.25rem;
}

/* ---- Logo ---- */
.vb-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.vb-logo-img-sm {
    width: 28px;
    height: 28px;
}

/* ---- Hero Section ---- */
.hero-section {
    background: url('/images/patterns/sparkles.png') repeat,
        linear-gradient(rgba(46, 58, 61, 0.58), rgba(46, 58, 61, 0.58)),
        linear-gradient(135deg, var(--vb-forest) 0%, var(--vb-green) 50%, var(--vb-green-light) 100%);
    background-size: 512px 512px, auto, auto;
    padding: 5rem 0;
    color: #fff;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.35rem;
    opacity: 0.9;
}

.hero-illustration {
    box-shadow: 0 1.25rem 3rem rgba(46, 58, 61, 0.28);
}

/* ---- Feature Sections ---- */
.feature-section-green {
    background: url('/images/patterns/sparkles.png') repeat,
        linear-gradient(rgba(46, 58, 61, 0.42), rgba(46, 58, 61, 0.42)),
        linear-gradient(135deg, var(--vb-green) 0%, var(--vb-green-dark) 100%);
    background-size: 512px 512px, auto, auto;
    padding: 5rem 0;
    color: #fff;
}

.feature-section-white {
    background: var(--vb-cream);
    padding: 5rem 0;
}

.feature-section-forest {
    background: url('/images/patterns/sparkles.png') repeat,
        linear-gradient(rgba(46, 58, 61, 0.32), rgba(46, 58, 61, 0.32)),
        linear-gradient(135deg, var(--vb-forest) 0%, var(--vb-forest-light) 100%);
    background-size: 512px 512px, auto, auto;
    padding: 5rem 0;
    color: #fff;
}

.section-title-script {
    font-family: 'Nunito', system-ui, sans-serif;
    font-style: normal;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.feature-section-white .section-title-script {
    color: var(--vb-forest) !important;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ---- Feature Cards ---- */
.feature-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.75rem 2rem rgba(16, 185, 129, 0.15);
}

.feature-icon {
    font-size: 2.25rem;
    color: var(--vb-green);
}

/* ---- Benefit Cards ---- */
.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-icon-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn-primary {
    color: #fff;
    background-color: var(--vb-dark-text);
    border-color: var(--vb-dark-text);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--vb-charcoal);
    border-color: var(--vb-charcoal);
}

.btn-outline-light:hover {
    color: var(--vb-dark-text);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(16, 185, 129, 0.3);
}

/* ---- CTA Section ---- */
.cta-section {
    background: url('/images/patterns/sparkles.png') repeat,
        linear-gradient(rgba(46, 58, 61, 0.38), rgba(46, 58, 61, 0.38)),
        linear-gradient(135deg, var(--vb-green) 0%, var(--vb-forest) 100%);
    background-size: 512px 512px, auto, auto;
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}

.cta-mascot {
    width: auto;
    height: 160px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.support-header-img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.faq-mascot {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex: 0 0 auto;
}

.error-mascot {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
}

/* ---- Content Pages (Privacy, Support) ---- */
.content-page {
    padding: 3rem 0;
    background: var(--vb-cream);
}

.content-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--vb-dark-text);
}

.content-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--vb-forest);
}

.content-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--vb-dark-text);
}

.content-page p,
.content-page li {
    color: var(--vb-muted-text);
    line-height: 1.7;
}

/* ---- Info Callout ---- */
.info-callout {
    background-color: var(--vb-green-lighter);
    border-left: 4px solid var(--vb-green);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

/* ---- AI-first resource pages ---- */
.resource-hero {
    background: url('/images/patterns/sparkles.png') repeat,
        linear-gradient(rgba(46, 58, 61, 0.5), rgba(46, 58, 61, 0.5)),
        linear-gradient(135deg, var(--vb-forest) 0%, var(--vb-green) 100%);
    background-size: 512px 512px, auto, auto;
    color: #fff;
    padding: 3rem 0 4rem;
}

.resource-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.resource-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.resource-breadcrumb a:hover {
    text-decoration: underline;
}

.resource-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 2rem;
    align-items: center;
}

.resource-kicker,
.app-download-kicker {
    color: var(--vb-coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.resource-hero .resource-kicker {
    color: #f8d5c3;
}

.resource-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    max-width: 820px;
    margin-bottom: 1.25rem;
}

.resource-lead {
    font-size: 1.18rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0;
}

.resource-section,
.resource-preview-section {
    background: var(--vb-cream);
    padding: 4rem 0;
}

.resource-preview-header {
    max-width: 760px;
    margin-bottom: 2rem;
}

.resource-preview-header h2 {
    color: var(--vb-forest);
    font-size: 2rem;
}

.resource-preview-header p {
    color: var(--vb-muted-text);
    line-height: 1.7;
}

.resource-preview-grid,
.verb-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.resource-preview-card,
.verb-list-card,
.answer-panel,
.app-download-card,
.next-step-panel,
.example-table-wrap {
    background: #fff;
    border: 1px solid rgba(85, 126, 131, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 2rem rgba(46, 58, 61, 0.08);
}

.resource-preview-card {
    color: var(--vb-dark-text);
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-preview-card:hover,
.verb-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2.25rem rgba(46, 58, 61, 0.12);
    text-decoration: none;
}

.resource-preview-card i {
    color: var(--vb-green);
    font-size: 1.8rem;
}

.resource-preview-card h3 {
    color: var(--vb-forest);
    font-size: 1.15rem;
    margin: 1rem 0 0.5rem;
}

.resource-preview-card p,
.verb-list-card p,
.app-download-card p,
.resource-main p {
    color: var(--vb-muted-text);
    line-height: 1.7;
}

.app-download-card {
    color: var(--vb-dark-text);
    padding: 1.4rem;
}

.app-download-card h2 {
    color: var(--vb-forest);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.app-download-actions {
    display: grid;
    gap: 0.75rem;
}

.resource-content {
    max-width: 1040px;
}

.resource-main h2 {
    color: var(--vb-forest);
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.answer-panel {
    border-left: 5px solid var(--vb-green);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.answer-panel h2 {
    margin-top: 0;
}

.verb-list-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 235px;
    padding: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verb-rank {
    color: var(--vb-coral);
    font-weight: 800;
    font-size: 0.88rem;
}

.verb-list-card h2 {
    color: var(--vb-forest);
    font-size: 1.6rem;
    margin: 0.3rem 0 0.35rem;
}

.verb-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.verb-card-meta span {
    background: var(--vb-green-lighter);
    border-radius: 999px;
    color: var(--vb-forest);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
}

.verb-card-link,
.verb-card-coming,
.next-step-links a {
    color: var(--vb-green-dark);
    font-weight: 800;
    text-decoration: none;
}

.verb-card-coming {
    color: var(--vb-muted-text);
}

.conjugation-table-wrap {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 2rem rgba(46, 58, 61, 0.08);
}

.conjugation-table {
    margin-bottom: 0;
}

.conjugation-table thead {
    background: var(--vb-forest);
    color: #fff;
}

.conjugation-table tbody td {
    background: #fff;
    vertical-align: middle;
}

.web-practice {
    background: #fff;
    border: 1px solid rgba(85, 126, 131, 0.18);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 2.5rem rgba(46, 58, 61, 0.1);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    margin: 1.25rem 0 2.5rem;
    overflow: hidden;
}

.web-practice-media {
    background: var(--vb-green-lighter);
    min-height: 100%;
}

.web-practice-media img {
    aspect-ratio: 3 / 2;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.web-practice-body {
    padding: 1.5rem;
}

.web-practice-topline {
    color: var(--vb-slate);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.web-practice-sentence {
    color: var(--vb-dark-text) !important;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4 !important;
    margin-bottom: 1.25rem;
}

.web-practice-label {
    color: var(--vb-forest);
    display: block;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.web-practice-input {
    border-color: rgba(85, 126, 131, 0.35);
    font-size: 1.1rem;
    font-weight: 800;
    min-height: 48px;
}

.accent-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.85rem 0 1rem;
}

.accent-toolbar button {
    background: var(--vb-green-lighter);
    border: 1px solid rgba(85, 126, 131, 0.24);
    border-radius: 0.45rem;
    color: var(--vb-forest);
    font-weight: 800;
    min-height: 38px;
    min-width: 38px;
}

.accent-toolbar button:hover,
.accent-toolbar button:focus {
    background: var(--vb-green-light);
}

.web-practice-feedback {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    display: flex;
    font-weight: 800;
    min-height: 66px;
    padding: 0.5rem;
}

.web-practice-feedback:not(.is-correct):not(.is-close):not(.is-wrong) {
    background: rgba(214, 232, 210, 0.42);
    border-color: rgba(85, 126, 131, 0.18);
}

.web-practice-check-button {
    min-height: 48px;
    min-width: 112px;
    padding-inline: 1.5rem;
}

.web-practice-feedback.is-correct {
    background: #dff7ec;
    color: #12613f;
    padding: 0.75rem 1rem;
}

.web-practice-feedback.is-close {
    background: #fff4d6;
    color: #7a5310;
    padding: 0.75rem 1rem;
}

.web-practice-feedback.is-wrong {
    background: #fde5df;
    color: #8a321e;
    padding: 0.75rem 1rem;
}

.web-practice-translation {
    color: var(--vb-muted-text);
    margin: 0.85rem 0 0;
    min-height: 1.7rem;
}

.web-practice-translation.is-empty {
    visibility: hidden;
}

.web-practice-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.example-table-wrap {
    margin: 1.25rem 0 2rem;
    overflow: hidden;
}

.example-table {
    margin-bottom: 0;
}

.example-table thead {
    background: var(--vb-green-lighter);
    color: var(--vb-forest);
}

.example-table th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.example-table td,
.example-table th {
    padding: 0.9rem 1rem;
    vertical-align: top;
}

.example-table tbody td {
    background: #fff;
    color: var(--vb-muted-text);
    line-height: 1.5;
}

.example-table tbody td:nth-child(1),
.example-table tbody td:nth-child(3) {
    color: var(--vb-forest);
    font-weight: 800;
    white-space: nowrap;
}

.example-table tbody td:nth-child(2) {
    color: var(--vb-dark-text);
}

.next-step-panel {
    margin-top: 2rem;
    padding: 1.25rem;
}

.next-step-panel h2 {
    color: var(--vb-forest);
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.next-step-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.next-step-links a {
    background: var(--vb-green-lighter);
    border: 1px solid rgba(85, 126, 131, 0.18);
    border-radius: 0.45rem;
    padding: 0.7rem 0.9rem;
}

.next-step-links a:hover,
.next-step-links a:focus {
    background: #fff;
    box-shadow: 0 0.5rem 1.25rem rgba(46, 58, 61, 0.08);
}

/* ---- Footer ---- */
.vb-footer {
    background-color: var(--vb-charcoal);
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.vb-footer a {
    transition: color 0.2s ease;
}

.vb-footer a:hover {
    color: var(--vb-green-light) !important;
}

.hero-section .opacity-75,
.feature-section-green .opacity-75,
.feature-section-forest .opacity-75,
.cta-section .opacity-75 {
    opacity: 1 !important;
}

/* ---- Focus States ---- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--vb-green);
}

/* ---- Text Utilities ---- */
.text-primary {
    color: var(--vb-green) !important;
}

.bg-primary {
    background-color: var(--vb-green) !important;
}

a.text-decoration-none:hover {
    text-decoration: underline !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .feature-section-green,
    .feature-section-white,
    .feature-section-forest {
        padding: 3rem 0;
    }

    .section-title-script {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-mascot {
        height: 110px;
    }

    .faq-mascot {
        width: 90px;
        height: 90px;
    }

    .resource-hero-grid,
    .resource-preview-grid,
    .verb-list-grid {
        grid-template-columns: 1fr;
    }

    .resource-hero {
        padding: 2rem 0 3rem;
    }

    .resource-section,
    .resource-preview-section {
        padding: 3rem 0;
    }

    .web-practice {
        grid-template-columns: 1fr;
    }

    .web-practice-actions {
        grid-template-columns: 1fr;
    }

    .web-practice-actions {
        flex-direction: column;
    }
}
