/* Custom CSS for Hot Escorts — shared base for public AND pubsmanage pages */

/* --- Variables ---
   The FULL site palette lives in these variables. Per-domain themes
   (css/theme-gs.css, css/theme-gn.css — picked by js/theme.js) only override
   :root values; never hardcode a color in a rule when a variable fits. */
:root {
    --primary-color: #cb0c9f;
    --primary-gradient: linear-gradient(310deg, #7928ca, #ff0080);
    --info-gradient: linear-gradient(310deg, #2152ff, #21d4fd);
    --secondary-color: #8392ab;
    --text-main: #344767;
    --text-light: #fff;
    --text-on-primary: #fff;          /* text on primary-gradient fills (buttons, badges, hero) */
    --bg-light: #f8f9fa;              /* page background + hover fills */
    --surface: #fff;                  /* cards, modals, dropdowns, list items */
    --surface-muted: #e9ecef;         /* secondary buttons, stepper dots/lines */
    --topbar-bg: rgba(255, 255, 255, 0.9);
    --input-bg: #fff;
    --input-text: #495057;
    --success-color: #82d616;
    --danger-color: #ea0606;
    --warning-color: #fb6340;
    --border-color: #d2d6da;
    --border-subtle: #dee2e6;         /* modal header/footer separators */
    --rule-color: rgba(0, 0, 0, 0.1); /* hr / .horizontal-rule */
    --focus-ring: rgba(203, 12, 159, 0.25);
    --border-radius: 1rem;
    --radius-sm: 0.5rem;
    --shadow: 0 2px 6px rgba(20, 20, 20, 0.08);
    --shadow-lg: 0 8px 26px -4px rgba(20, 20, 20, 0.15), 0 8px 9px -5px rgba(20, 20, 20, 0.06);
    --font-family: 'Open Sans', sans-serif;
}

/* --- Resets & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.05rem;
    color: var(--secondary-color);
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: var(--primary-gradient);
}

.text-primary { color: var(--primary-color); }
.text-white { color: var(--text-light); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.font-weight-bold { font-weight: 700; }

/* --- Spacing utilities (kept minimal; used by JS-injected markup too) --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

.visually-hidden {
    display: none !important;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1140px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.container-narrow {
    max-width: 720px;
}

/* --- Topbar (replaces old page-header + nav-pills + floating switcher) --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(20, 20, 20, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.topbar-nav .nav-link {
    display: block;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.topbar-nav .nav-link:hover {
    color: var(--text-main);
    background: var(--bg-light);
}

.topbar-nav .nav-link.active {
    color: var(--text-main);
    background: var(--bg-light);
    box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.06);
}

/* --- Page head (compact intro instead of hero) --- */
.page-head {
    padding: 1.5rem 0 0.5rem;
    text-align: center;
}

.page-head .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

/* --- Card --- */
.card {
    background-color: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-body {
    padding: 1.25rem;
}

.card.blur {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease-in;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
    min-width: 110px;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    min-width: 0;
}

.btn-primary {
    background-image: var(--primary-gradient);
    color: var(--text-on-primary);
    border: none;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, .1), 0 3px 6px rgba(0, 0, 0, .08);
    color: var(--text-on-primary);
}

.btn-white {
    background-color: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--surface);
    box-shadow: 0 4px 7px -1px rgba(0, 0, 0, 0.11);
}

.btn-white:hover {
    background-color: var(--bg-light);
}

.btn-secondary {
    background-color: var(--surface-muted);
    color: var(--text-main);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--text-on-primary);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* --- Forms --- */
label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    font-size: 0.85rem;
}

label i {
    font-weight: 400;
    opacity: 0.8;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--input-text);
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(234, 6, 6, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.col-half {
    flex: 1;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- Model grid (public list; markup duplicated in dyn_folder_export.py + gnfuncs.js) --- */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    padding: 1rem 0 2rem;
}

.model-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.model-card-img {
    width: 100%;
    aspect-ratio: 384 / 596;
    object-fit: cover;
}

.model-card-body {
    padding: 0.6rem 0.75rem 0.75rem;
    text-align: center;
}

.model-card-name {
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
}

.model-card-location {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.model-card-avail {
    margin-bottom: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: var(--primary-gradient);
}

/* --- Pricing --- */
.pricing-section {
    background-image: var(--primary-gradient);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem 2rem;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pricing-section h3,
.pricing-section .pricing-intro {
    color: var(--text-on-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.price-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.price-card ul {
    text-align: left;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.price-card ul li {
    margin-bottom: 0.35rem;
}

.price-card.featured {
    background-image: var(--primary-gradient);
    color: var(--text-on-primary);
}

.price-card.featured h5,
.price-card.featured .price {
    color: var(--text-on-primary);
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-on-primary);
    white-space: nowrap;
    border-radius: 0.25rem;
    background-image: var(--info-gradient);
}

/* --- Alerts --- */
.alert {
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    border-radius: var(--radius-sm);
    color: var(--text-on-primary);
    font-size: 0.9rem;
}

.alert-warning {
    background-color: var(--warning-color);
}

/* Model detail modal content */
.model-detail-img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.model-contact-link {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Consent gate (see custom.js) ---
   Until consent is given the whole page is blurred and inert behind the
   non-dismissable #datenschutz modal. */
body.gn-consent-pending > :not(#datenschutz) {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.gn-modal-static .btn-close {
    display: none;
}

/* --- Modal (custom) --- */
.gn-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gn-modal-backdrop.show {
    display: flex;
    opacity: 1;
}

.gn-modal {
    background: var(--surface);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 92%;
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px);
    transition: transform 0.3s;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.gn-modal-backdrop.show .gn-modal {
    transform: translateY(0);
}

.gn-modal-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gn-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}

.gn-modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-main);
    opacity: 0.5;
}

/* --- Carousel (markup generated by gnfuncs.js + dyn_folder_export.py) --- */
.carousel {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity .15s ease;
    cursor: pointer;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 15% 1rem;
    list-style: none;
}

.carousel-indicators [data-bs-target] {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin: 0 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    transition: opacity .6s ease;
}

.carousel-indicators .active {
    opacity: 1;
}

/* --- Language dropdown (lives inside the topbar now) --- */
.lang-switcher-top {
    margin-left: auto;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-family);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.custom-dropdown-toggle:hover {
    background: var(--bg-light);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--surface);
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 1060;
    animation: fadeIn 0.2s ease-out;
}

.custom-dropdown-menu.show {
    display: block;
}

.custom-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    transition: background 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
}

.custom-dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
footer, .footer {
    padding: 1.5rem 0 2rem;
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

footer p, .footer p {
    margin-bottom: 0;
}

/* --- Misc --- */
.horizontal-rule {
    border: 0;
    border-top: 1px solid var(--rule-color);
    margin: 1rem 0;
}

hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--rule-color);
}

/* Legal / long-form text pages (datenschutz) */
.legal-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-card h3 {
    margin-top: 1.25rem;
}

@media (max-width: 576px) {
    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .topbar-nav {
        order: 3;
        flex-basis: 100%;
    }

    .model-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}
