/* =========================================================
   PROMPTELIER — RESPONSIVE SYSTEM
   Synced exclusively with the new index.html.
========================================================= */

@media (max-width: 1100px) {
    .option-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .check-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .theme-grid,
    .style-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 36px), 760px);
    }

    .hero {
        min-height: 590px;
        padding: 85px 0 90px;
    }

    .settings-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .how-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 30px);
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 70px;
        gap: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .header-button {
        min-width: 46px;
        width: 46px;
        padding: 0;
    }

    .header-button span,
    .header-button .small-icon {
        display: none;
    }

    .theme-button {
        width: 46px;
    }

    .hero {
        min-height: auto;
        padding: 72px 0 80px;
    }

    .hero h1 {
        max-width: 600px;
        font-size: clamp(39px, 9vw, 54px);
    }

    .hero-description {
        max-width: 560px;
        font-size: 13px;
    }

    .form-step {
        padding: 29px 24px;
    }

    .check-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .generate-area {
        padding: 24px;
        align-items: stretch;
        flex-direction: column;
    }

    .generate-button {
        width: 100%;
    }

    .result-section {
        padding: 70px 0;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 64px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-button,
    .theme-button {
        width: 40px;
        height: 40px;
    }

    .language-menu {
        width: 195px;
    }

    .hero {
        padding: 60px 0 68px;
    }

    .hero-eyebrow {
        font-size: 8px;
        gap: 8px;
    }

    .eyebrow-line {
        width: 18px;
    }

    .hero h1 {
        margin-top: 18px;
        font-size: clamp(34px, 11vw, 45px);
    }

    .hero-description {
        max-width: 340px;
        font-size: 12px;
    }

    .hero-features {
        gap: 10px 14px;
        font-size: 9px;
    }

    .generator-section {
        padding: 20px 0 65px;
    }

    .generator-card {
        border-radius: 20px;
    }

    .form-step {
        padding: 23px 16px;
    }

    .step-heading {
        gap: 10px;
        margin-bottom: 19px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 9px;
    }

    .step-heading h2 {
        font-size: 21px;
    }

    .step-heading p {
        font-size: 10px;
    }

    .option-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .option-content {
        min-height: 91px;
        padding: 12px;
    }

    .option-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .option-icon svg {
        width: 15px;
        height: 15px;
    }

    .option-copy strong {
        font-size: 10px;
    }

    .option-copy span {
        font-size: 8px;
    }

    .check-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .check-tag span {
        min-height: 37px;
        padding: 0 9px;
        font-size: 9px;
    }

    .check-tag svg {
        width: 13px;
        height: 13px;
    }

    .theme-grid,
    .style-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .theme-card-content,
    .style-card-content {
        min-height: 116px;
        padding: 12px;
    }

    .theme-card-content strong,
    .style-card-content strong {
        font-size: 10px;
    }

    .theme-card-content > span:last-child,
    .style-card-content > span:last-child {
        font-size: 8px;
    }

    .theme-icon,
    .style-icon {
        width: 32px;
        height: 32px;
    }

    .theme-icon svg,
    .style-icon svg {
        width: 15px;
        height: 15px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .setting-field label,
    .custom-field label {
        font-size: 9px;
    }

    .setting-field select,
    .custom-field input {
        height: 43px;
        font-size: 10px;
    }

    .custom-field textarea {
        font-size: 10px;
    }

    .generate-area {
        padding: 19px 16px;
    }

    .generate-copy {
        align-items: flex-start;
    }

    .generate-icon {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    .generate-copy strong {
        font-size: 10px;
    }

    .generate-copy span {
        font-size: 8px;
    }

    .generate-button {
        min-height: 46px;
        font-size: 10px;
    }

    .result-section {
        padding: 58px 0;
    }

    .result-header h2 {
        font-size: 27px;
    }

    .result-actions {
        width: 100%;
        flex-direction: column;
    }

    .result-actions .secondary-button {
        width: 100%;
    }

    .style-lock-card,
    .negative-prompt-card,
    .page-prompt-card {
        padding: 15px;
        border-radius: 15px;
    }

    .result-card-heading h3 {
        font-size: 19px;
    }

    .prompt-box {
        max-height: 330px;
        padding: 12px;
        font-size: 9px;
    }

    .page-prompt-top {
        align-items: flex-start;
    }

    .page-number {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 9px;
        font-size: 9px;
    }

    .page-prompt-title strong {
        font-size: 10px;
    }

    .page-prompt-title span {
        font-size: 7px;
    }

    .secondary-button {
        min-height: 42px;
        font-size: 9px;
    }

    .how-section {
        padding: 58px 0 70px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .section-heading p {
        font-size: 10px;
    }

    .how-card {
        min-height: 175px;
        padding: 20px;
    }

    .footer-inner {
        min-height: 100px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 9px;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .option-grid,
    .theme-grid,
    .style-grid {
        grid-template-columns: 1fr;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero-description {
        font-size: 11px;
    }
}
