/* =========================================================
   NexuCloudAI TaxiBooking - Admin Content/SEO UI
   File: wwwroot/css/seo-content.css
   Purpose: styles for /Admin/Content, /Admin/Seo, /prices, /sitemap, SEO landing pages
   ========================================================= */

/* ---------- Public editable content pages ---------- */
.content-page {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 28px;
    align-items: start;
}

.rich-content-card,
.side-cta-card {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .08);
    padding: 32px;
}

.rich-content-card p {
    font-size: 17px;
    line-height: 1.75;
    color: #475467;
    margin: 0 0 18px;
}

.rich-content-card p:last-child {
    margin-bottom: 0;
}

.side-cta-card {
    position: sticky;
    top: 100px;
}

.side-cta-card h2 {
    font-size: 28px;
    margin: 0 0 12px;
    letter-spacing: -.03em;
}

.side-cta-card p {
    color: #667085;
    line-height: 1.65;
}

.primary-link-button,
.btn-primary.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--gold, #f8bd08);
    color: var(--navy, #06111f) !important;
    font-weight: 900;
    padding: 12px 18px;
    box-shadow: 0 12px 24px rgba(248, 189, 8, .24);
    cursor: pointer;
    text-decoration: none;
}

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

.editable-service-grid article small {
    display: block;
    margin-top: 12px;
    color: #667085;
    line-height: 1.55;
}

.prices-section {
    background: #ffffff;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--container, 1180px);
    margin: 0 auto;
}

.price-card {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
}

.price-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.price-card strong {
    display: block;
    font-size: 28px;
    color: var(--navy, #06111f);
    letter-spacing: -.04em;
    margin-bottom: 8px;
}

.price-card p {
    color: #667085;
    line-height: 1.5;
    margin: 0;
}

.price-disclaimer {
    max-width: var(--container, 1180px);
    margin: 18px auto 0;
    background: #fff8df;
    border: 1px solid rgba(248, 189, 8, .45);
    border-radius: 16px;
    padding: 14px 16px;
    color: #7a5a00;
    font-weight: 800;
}

.center-actions {
    text-align: center;
    margin-top: 22px;
}

/* ---------- HTML sitemap page ---------- */
.sitemap-page {
    background: #f8fafc;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: var(--container, 1180px);
    margin: 0 auto;
}

.sitemap-grid article {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .07);
    display: grid;
    gap: 10px;
}

.sitemap-grid h2 {
    margin: 0 0 8px;
}

.sitemap-grid a,
.sitemap-grid span {
    font-weight: 800;
    color: #344054;
}

/* =========================================================
   Admin CMS layout
   ========================================================= */

.cms-admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(248, 189, 8, .14), transparent 34%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.cms-admin .admin-header {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
    margin-bottom: 20px;
}

.cms-admin .admin-header span {
    display: inline-flex;
    color: #b68100;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cms-admin .admin-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.045em;
}

.cms-admin .admin-header p {
    margin: 8px 0 0;
    color: #667085;
    max-width: 760px;
    line-height: 1.6;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cms-form {
    display: grid;
    gap: 22px;
}

.cms-panel {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .075);
    margin-bottom: 22px;
}

.cms-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.cms-panel-header h2,
.cms-panel h2 {
    margin: 0;
    color: #101828;
    font-size: 24px;
    letter-spacing: -.035em;
}

.cms-panel-header button,
.cms-repeat-row button.danger {
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #991b1b;
    border-radius: 999px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.cms-panel-header button:hover,
.cms-repeat-row button.danger:hover {
    background: #fff1f2;
}

.cms-grid {
    display: grid;
    gap: 16px;
}

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

.cms-grid label,
.cms-repeat-row label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.cms-grid input,
.cms-grid textarea,
.cms-grid select,
.cms-repeat-row input,
.cms-repeat-row textarea,
.cms-repeat-row select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 48px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.cms-grid input:hover,
.cms-grid textarea:hover,
.cms-grid select:hover,
.cms-repeat-row input:hover,
.cms-repeat-row textarea:hover,
.cms-repeat-row select:hover {
    border-color: #98a2b3;
}

.cms-grid input:focus,
.cms-grid textarea:focus,
.cms-grid select:focus,
.cms-repeat-row input:focus,
.cms-repeat-row textarea:focus,
.cms-repeat-row select:focus {
    border-color: var(--gold, #f8bd08);
    box-shadow: 0 0 0 4px rgba(248, 189, 8, .18);
}

.cms-grid textarea,
.cms-repeat-row textarea {
    min-height: 110px;
    line-height: 1.55;
    resize: vertical;
}

.cms-grid label.wide textarea,
.cms-repeat-row label.wide textarea {
    min-height: 150px;
}

.cms-grid .wide,
.cms-repeat-row .wide {
    grid-column: 1 / -1;
}

.cms-subtitle {
    margin: 24px 0 14px;
    color: #b68100;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cms-help {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 14px 16px;
    color: #667085;
    font-weight: 700;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* Repeat rows are card-style, not cramped table rows */
.cms-repeat-row {
    position: relative;
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.cms-repeat-row:hover {
    border-color: #d0d5dd;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .09);
}

.service-repeat-row,
.cms-repeat-row:not(.price-repeat-row):not(.seo-repeat-row) {
    grid-template-columns: 90px 110px minmax(220px, 1fr) minmax(280px, 1.4fr);
    align-items: end;
}

.service-repeat-row .wide,
.cms-repeat-row:not(.price-repeat-row):not(.seo-repeat-row) .wide {
    grid-column: 1 / -1;
}

.price-repeat-row {
    grid-template-columns: 90px minmax(260px, 1.4fr) minmax(150px, .7fr) minmax(260px, 1.2fr);
    align-items: end;
}

.seo-repeat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 22px;
}

.seo-repeat-row .wide {
    grid-column: 1 / -1;
}

.seo-repeat-row textarea {
    min-height: 120px;
}

.seo-repeat-row .wide textarea {
    min-height: 170px;
}

.seo-repeat-row .primary-link-button,
.seo-repeat-row button.danger,
.price-repeat-row button.danger,
.service-repeat-row button.danger {
    justify-self: start;
    align-self: center;
}

.checkbox-line {
    display: inline-flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-start;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f9fafb;
    color: #344054 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.checkbox-line input {
    width: 18px !important;
    height: 18px !important;
    min-height: auto !important;
    padding: 0 !important;
    accent-color: var(--gold, #f8bd08);
}

.booking-submit {
    min-height: 50px;
    border-radius: 999px;
    border: 0;
    background: var(--gold, #f8bd08);
    color: var(--navy, #06111f);
    font-weight: 900;
    padding: 13px 22px;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(248, 189, 8, .24);
}

.booking-submit:hover {
    transform: translateY(-1px);
}

.danger {
    background: #fff7f7 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    box-shadow: none !important;
}

.danger:hover {
    background: #fff1f2 !important;
}

.sticky-save-bar {
    position: sticky;
    bottom: 0;
    background: rgba(245, 247, 251, .92);
    backdrop-filter: blur(12px);
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    padding: 14px;
    margin: 8px 0 26px;
    z-index: 5;
    box-shadow: 0 -8px 30px rgba(16, 24, 40, .08);
}

.sticky-save-bar .booking-submit {
    width: 100%;
}

.compact-add-panel {
    margin-top: 22px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.compact-add-panel h2 {
    margin-bottom: 16px;
}

.cms-admin .alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 900;
}

.cms-admin .alert.success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

@media (max-width: 1180px) {
    .service-repeat-row,
    .cms-repeat-row:not(.price-repeat-row):not(.seo-repeat-row),
    .price-repeat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-repeat-row .wide,
    .cms-repeat-row:not(.price-repeat-row):not(.seo-repeat-row) .wide,
    .price-repeat-row .wide {
        grid-column: 1 / -1;
    }

    .price-grid,
    .sitemap-grid,
    .full-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .content-page {
        grid-template-columns: 1fr;
    }

    .side-cta-card {
        position: relative;
        top: auto;
    }

    .cms-grid.two,
    .seo-repeat-row {
        grid-template-columns: 1fr;
    }

    .admin-header-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .cms-admin .admin-header,
    .rich-content-card,
    .side-cta-card,
    .cms-panel {
        padding: 18px;
        border-radius: 20px;
    }

    .cms-panel-header {
        display: grid;
        gap: 12px;
    }

    .cms-panel-header button,
    .admin-header-actions a,
    .primary-link-button,
    .booking-submit {
        width: 100%;
    }

    .admin-header-actions {
        display: grid;
    }

    .price-grid,
    .sitemap-grid,
    .full-service-grid,
    .service-repeat-row,
    .cms-repeat-row:not(.price-repeat-row):not(.seo-repeat-row),
    .price-repeat-row,
    .seo-repeat-row {
        grid-template-columns: 1fr;
    }

    .cms-repeat-row {
        padding: 16px;
        border-radius: 20px;
    }

    .cms-grid input,
    .cms-grid textarea,
    .cms-grid select,
    .cms-repeat-row input,
    .cms-repeat-row textarea,
    .cms-repeat-row select {
        font-size: 16px;
        min-height: 50px;
    }

    .cms-grid textarea,
    .cms-repeat-row textarea {
        min-height: 105px;
    }

    .cms-grid label.wide textarea,
    .cms-repeat-row label.wide textarea {
        min-height: 135px;
    }

    .price-card strong {
        font-size: 24px;
    }
}

/* =========================================================
   About page uploaded certificates / images
   ========================================================= */
.about-certificates-section {
    background: #f8fafc;
}

.about-certificate-grid {
    max-width: var(--container, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-certificate-card {
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .08);
}

.about-certificate-card a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #eef2f7;
}

.about-certificate-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.about-certificate-card h3 {
    margin: 13px 2px 2px;
    font-size: 17px;
    letter-spacing: -.02em;
    color: #101828;
}

.about-upload-panel .cms-panel-note {
    margin: 7px 0 0;
    color: #667085;
    font-weight: 700;
    line-height: 1.55;
}

.about-admin-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.about-admin-image-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
    display: grid;
    gap: 12px;
}

.about-admin-image-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.about-admin-image-card strong {
    display: block;
    color: #101828;
    font-size: 16px;
}

.about-admin-image-card small {
    display: block;
    color: #667085;
    font-weight: 800;
    margin-top: 2px;
}

.about-admin-image-card form {
    margin: 0;
}

.about-admin-image-card button {
    width: 100%;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
}

.about-upload-form {
    border-top: 1px solid #eef2f7;
    padding-top: 18px;
}

.about-upload-form input[type="file"] {
    padding: 10px;
    min-height: 48px;
}

/* =========================================================
   Admin booking notification bell
   ========================================================= */
.admin-notification-bell {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
    color: var(--navy, #061426);
    font-weight: 900;
    text-decoration: none;
}

.admin-notification-bell:hover {
    border-color: var(--gold, #f8bd08);
    box-shadow: 0 12px 28px rgba(248, 189, 8, .18);
}

.bell-symbol {
    font-size: 18px;
    line-height: 1;
}

.bell-label {
    font-size: 13px;
    color: #344054;
}

.bell-count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
}

.bell-count.is-empty {
    background: #e4e7ec;
    color: #667085;
}

.bell-count.pulse {
    animation: bellBadgePulse .85s ease-in-out;
}

@keyframes bellBadgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    35% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(239, 68, 68, .18); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 900px) {
    .about-certificate-grid,
    .about-admin-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-certificate-grid,
    .about-admin-image-grid {
        grid-template-columns: 1fr;
    }

    .about-certificate-card img,
    .about-admin-image-card img {
        height: 210px;
    }

    .admin-notification-bell {
        width: 100%;
        justify-content: space-between;
    }
}
