﻿/* SexualKingdom — red/black, symmetric gutters, no white blocks */
:root {
    --bg: #0a0a0a;
    --surface: #101010;
    --panel: #121212;
    --muted: #bfc3cf;
    --ink: #ffffff;
    --border: #241112;
    --accent: #ff3b30;
    --accent2: #b31217;
    --radius: 14px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font: 15px/1.5 Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    background: #ffffff;
    /* <-- ZMENENÉ NA BIELU */
    color: #111827;
    /* <-- Text zmeň na tmavý, aby bol čitateľný */
}

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

/* WRAP */
.wrap {
    width: min(1280px, 96vw);
    margin-inline: auto
}

/* TOPBAR: symmetric paddings left/right */
.topbar {
    background: #0b0b0b;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 2px solid #ffffff10
}

.topgrid {
    width: 100%;
    max-width: none;
    padding: 0 64px;
    /* equal gutters both sides */
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    column-gap: 24px;
    height: 78px;
}

.brand {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800
}

.brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover
}

.brand-text {
    display: inline-flex;
    gap: 0;
    align-items: baseline;
    font-size: 24px;
    line-height: 1
}

.seg-sexual {
    color: #ffffff
}

.seg-kingdomcom {
    color: var(--accent)
}

/* red Kingdom.com */
.nav {
    justify-self: end;
    display: flex;
    gap: 22px
}

.nav a {
    opacity: .95
}

.nav a:hover {
    opacity: 1;
    color: #ffffff
}

.actions {
    justify-self: end;
    display: flex;
    gap: 14px;
    margin-left: 24px
}

.link-ghost {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: #f0f1f5
}

.link-ghost:hover {
    background: rgba(255, 255, 255, .08)
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #161616;
    color: #fff;
    cursor: pointer
}

.btn.outline {
    background: #101010
}

.btn.primary {
    border: 0;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    box-shadow: 0 10px 26px rgba(255, 59, 48, .35)
}

.btn:hover {
    filter: saturate(108%)
}

/* STORY RAIL */
.railbar {
    padding: 14px 0;
    background: #0d0c0c;
    border-bottom: 1px solid #1e0f10
}

.rail {
    display: flex;
    gap: 14px;
    overflow: auto;
    scrollbar-width: none
}

.rail::-webkit-scrollbar {
    display: none
}

.story {
    width: 112px;
    flex: 0 0 112px
}

.story .thumb {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1b1518, #301316)
}

.story .name {
    margin-top: 6px;
    font-size: 12px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left
}

/* ====== BIELA ZÓNA NA INDEXE (filtre + prázdna karta) ====== */
.below-white .filters {
    background: transparent;
    border-bottom: none;
}

.below-white .empty-card {
    background: #ffffff;
    color: #111;
    border: 1px solid #e6e9f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.below-white .notice {
    color: #6f7482;
}

.below-white .notice a {
    color: #1c2230;
    text-decoration: underline;
    text-decoration-color: #cfd4e6;
}

/* === UserNav (chip + dropdown, unified) =========================== */
.topbar .actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.usernav {
    position: relative;
}

/* reset zdedených štýlov z tlačidiel */
.usernav-chip {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    background: #14161b;
    color: #f5f6f8;
    border: 1px solid #242733;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.usernav-chip:hover {
    background: #191e28;
    border-color: #2e3341;
}

.usernav-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: radial-gradient(120% 120% at 30% 20%, #2a2a44, #14141b);
}

.usernav-name {
    font-weight: 700;
}

.usernav-role {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #9aa0b4;
    border: 1px solid #2b2f3a;
    background: #0f1116;
    text-transform: lowercase;
}

.usernav-caret {
    opacity: .7;
    transition: transform .15s ease;
}

.usernav.open .usernav-caret {
    transform: rotate(180deg);
}

/* dropdown – default skrytý */
.usernav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1000;
    min-width: 200px;
    padding: 8px;
    border-radius: 12px;
    display: none;
    background: #0e0f12;
    border: 1px solid #23232a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.usernav.open .usernav-menu {
    display: block;
}

.usernav-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #e6e8ef;
    text-decoration: none;
}

.usernav-item:hover {
    background: #14161b;
}

/* ================================================================= */

/* ================================================= */
/* === OPRAVA PRE PREKRÝVAJÚCE SA TLAČIDLO GALÉRIE === */
/* ================================================= */

/* 1. Rodičovský prvok (fotka) musí mať position: relative */
.model-photo {
    position: relative;
    cursor: pointer;
    /* Ukáže, že sa na to dá kliknúť */
}

/* 2. Tlačidlo galérie bude absolútne pozicované v rohu */
.locked-gallery-btn {
    position: absolute;
    bottom: 10px;
    /* 10px od spodného okraja */
    right: 10px;
    /* 10px od pravého okraja */

    /* Nastavíme mu pevnú veľkosť, aby sa nerozťahovalo */
    width: 40px;
    height: 40px;

    /* Zvyšok pre pekný vzhľad */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    /* Uistíme sa, že je nad fotkou */
}

.locked-gallery-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.locked-gallery-btn:hover {
    background: #e11d48;
    /* Použije tvoju červenú farbu */
    transform: scale(1.1);
}

/* === BIELA VERZIA PRE HLAVNÚ STRÁNKU === */
body.index-page {
    background: #ffffff !important;
    color: #111827 !important;
}

body.index-page .topbar {
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
}

body.index-page .brand-text {
    color: #111827;
}

body.index-page .seg-sexual {
    color: #111827;
}

/* ================================================================= */
/* === CREDITS MODAL - REDESIGN (Inspired by image) === */
/* ================================================================= */

.credits-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.credits-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.credits-modal-container {
    background: #f3f4f6;
    width: 95%;
    max-width: 1100px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HEADER */
.credits-modal-header {
    background: #dc2626;
    /* Strong Red */
    color: white;
    text-align: center;
    padding: 24px 20px;
    position: relative;
}

.credits-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.credits-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.credits-modal-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.credits-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.credits-modal-close:hover {
    background: white;
    color: #dc2626;
    transform: rotate(90deg);
}

/* BODY */
.credits-modal-body {
    padding: 30px;
    overflow-y: auto;
}

/* GRID */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Card Variants */
.pricing-card.popular {
    border-color: #dc2626;
    background: #fffafa;
}

.pricing-card.value {
    border-color: #10b981;
    background: #f0fdf4;
}

.pricing-card.vip {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Top Badge */
.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popular .card-badge {
    background: #dc2626;
}

.value .card-badge {
    background: #10b981;
}

.vip .card-badge {
    background: linear-gradient(135deg, #8b5cf6, #c026d3);
}

/* Discount Tag Corner */
.discount-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 14px;
}

/* Content */
.pc-amount {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-top: 10px;
}

.pc-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.pc-bonus {
    display: inline-block;
    background: #fef3c7;
    color: #d97706;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.pc-price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 2px;
}

.pc-price {
    font-size: 24px;
    font-weight: 800;
    color: #dc2626;
}

.pc-per-credit {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 12px;
}

.pc-save-badge {
    background: #22c55e;
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: auto;
    cursor: pointer;
    transition: background 0.2s;
}

.pc-save-badge:hover {
    filter: brightness(1.1);
}

.popular .pc-save-badge {
    background: #dc2626;
}

.pc-footer-text {
    margin-top: 8px;
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
}

/* FOOTER */
.credits-modal-footer {
    background: white;
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #10b981;
}

/* ================================================================= */
/* === RESPONSIVE DESIGN - MOBILE & TABLET === */
/* ================================================================= */

/* === TABLET (max-width: 768px) === */
@media (max-width: 768px) {

    /* Header */
    .topgrid {
        padding: 0 20px;
        height: 64px;
        grid-template-columns: auto 1fr auto;
    }

    .brand-text {
        font-size: 18px;
    }

    .nav {
        display: none;
        /* Hide nav on tablet */
    }

    .actions {
        margin-left: 12px;
        gap: 10px;
    }

    /* Credits button smaller */
    .credits-display,
    #navCredits {
        padding: 8px 14px !important;
        font-size: 14px !important;
    }

    /* Icon buttons smaller */
    #messagesBtn,
    #rewardsBtn,
    #blogBtn,
    #postsBtn {
        width: 40px !important;
        height: 40px !important;
    }

    #messagesBtn svg,
    #rewardsBtn svg,
    #blogBtn svg,
    #postsBtn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* User chip */
    .usernav-chip {
        padding: 4px 10px;
    }

    .usernav-name {
        display: none;
    }

    .usernav-role {
        display: none !important;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
    }

    /* Main content */
    .wrap {
        width: 100%;
        padding: 0 16px;
    }

    main.wrap {
        padding: 20px 16px;
    }

    /* Filters */
    .filters {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }

    .filters select,
    .filters input {
        flex: 1 1 45%;
        min-width: 140px;
    }

    /* Model grid - 2 columns on tablet */
    #modelsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Modals */
    .credits-modal-container,
    .bcm-box {
        width: 95%;
        max-width: 95%;
    }

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

    /* Footer */
    .footer .foot {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .foot-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === MOBILE (max-width: 480px) === */
@media (max-width: 480px) {

    /* Header - more compact */
    .topgrid {
        padding: 0 12px;
        height: 56px;
    }

    .brand-logo {
        width: 22px;
        height: 22px;
    }

    .brand-text {
        font-size: 16px;
    }

    .actions {
        gap: 6px;
        margin-left: 8px;
    }

    /* Hide some buttons on mobile */
    #blogBtn,
    #postsBtn {
        display: none !important;
    }

    /* Credits - minimal */
    .credits-display,
    #navCredits {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    /* Icon buttons even smaller */
    #messagesBtn,
    #rewardsBtn {
        width: 36px !important;
        height: 36px !important;
    }

    /* User avatar only */
    .usernav-chip {
        padding: 4px;
    }

    .usernav-role {
        display: none !important;
    }

    /* Prevent horizontal scroll from admin badge */
    body {
        overflow-x: hidden !important;
    }

    .topbar,
    .topgrid,
    .actions {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Main content - full width */
    .wrap {
        padding: 0 10px;
    }

    main.wrap {
        padding: 16px 10px;
    }

    /* Section titles */
    h1,
    .section-title {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    /* Filters - stack vertically */
    .filters {
        flex-direction: column;
        padding: 12px;
    }

    .filters select,
    .filters input {
        width: 100%;
        flex: 1 1 100%;
    }

    .filters button {
        width: 100%;
    }

    /* Model grid - 2 columns on mobile and COMPACT */
    #modelsGrid,
    .models-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 8px !important;
    }

    /* Model cards - SMALLER/COMPACT */
    .model-card {
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .model-photo {
        height: 180px !important;
        overflow: hidden;
    }

    .model-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }

    .model-info {
        padding: 10px 12px;
    }

    .model-name {
        font-size: 15px;
        font-weight: 700;
    }

    .model-meta {
        font-size: 12px;
        margin-top: 2px;
    }

    .model-actions {
        flex-direction: row;
        gap: 8px;
        padding: 0 12px 12px;
    }

    .model-actions .btn-view,
    .model-actions .btn-message {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
    }

    /* Modals - full screen on mobile */
    .credits-modal-container,
    .bcm-box,
    #buyCreditsModal .bcm-box {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }

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

    .bcm-card {
        padding: 16px 12px;
    }

    .bcm-credits {
        font-size: 28px;
    }

    .bcm-price {
        font-size: 20px;
    }

    /* Modal headers */
    .bcm-header,
    .credits-modal-header {
        padding: 20px 16px;
    }

    .bcm-header h2,
    .credits-modal-header h2 {
        font-size: 22px;
    }

    /* Insufficient credits modal */
    #insufficientCreditsModal .modal-box {
        width: 95%;
        padding: 20px;
    }

    /* Footer */
    .footer {
        padding: 16px 12px;
    }

    .footer .foot {
        font-size: 13px;
    }

    .foot-links a {
        padding: 4px 8px;
    }
}

/* === EXTRA SMALL (max-width: 360px) === */
@media (max-width: 360px) {
    .topgrid {
        padding: 0 8px;
    }

    .brand-text {
        font-size: 14px;
    }

    .credits-display,
    #navCredits {
        padding: 5px 8px !important;
        font-size: 12px !important;
    }

    #messagesBtn,
    #rewardsBtn {
        width: 32px !important;
        height: 32px !important;
    }

    .model-photo {
        height: 240px;
    }
}