/* =============================================================================
   main.css — Styles globaux du site public Kinkyplayzone
   v0.002
   ============================================================================= */

/* ── Variables de Thème ── */
:root {
    /* Thème Sombre par défaut */
    --bg-color: #0b0c10;
    --card-bg: #14161d;
    --text-color: #f5f5f7;
    --text-muted: #9aa0a6;
    --border-color: #1f232b;
    --header-bg: #0b0c10;
    --header-border: #1f232b;
    --category-bg: #101218;
    --link-color: #f5f5f7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --accent-color: #e60000;
    --accent-hover: #ff3333;
    --input-bg: #14161d;
    --input-border: #2c313d;
    --nav-hover-bg: #1f232b;
}


/* ── Base ─────────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    transition: color 0.3s ease;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding-top: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Header ───────────────────────────────────────────────────────────────── */

#main-header {
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--header-bg);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Navigation principale ────────────────────────────────────────────────── */

nav a {
    margin-right: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a:hover {
    color: var(--accent-color) !important;
}

.category-bar-link:hover {
    color: var(--accent-color) !important;
    background: var(--nav-hover-bg) !important;
}

/* ── Sélecteur de Thème & Membre ── */
#theme-toggle,
#theme-toggle-mobile {
    outline: none;
}

#theme-toggle:hover span,
#theme-toggle-mobile:hover span {
    transform: scale(1.15);
}

.nav-member-login svg {
    transition: color 0.15s ease;
}

.nav-member-login:hover svg {
    color: var(--accent-color) !important;
}

/* ── Barre de catégories ──────────────────────────────────────────────────── */

.category-bar {
    background: var(--category-bg);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ── Sélecteur de langue ──────────────────────────────────────────────────── */

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher a {
    text-decoration: none;
    color: #666;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.85em;
    display: flex;
    align-items: center;
}

.lang-switcher a:hover {
    background: #f0f0f0;
}

.lang-switcher a.active {
    font-weight: bold;
    color: #fff;
    background: #333;
    border-color: #333;
    cursor: default;
}

/* ── Drapeau ──────────────────────────────────────────────────────────────── */

.flag {
    margin-right: 8px;
    width: 20px;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

/* ── Recherche desktop ────────────────────────────────────────────────────── */

.desktop-search-container {
    display: flex;
    align-items: center;
}

/* ── Contenu principal ────────────────────────────────────────────────────── */

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 25px;
}

.container {
    min-height: 400px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
    margin-top: 40px;
    /* border-top: 1px solid #ccc; */
    font-size: 0.8em;
    color: #777;
    padding-top: 10px;
}

/* ── Menu hamburger (Mobile) ──────────────────────────────────────────────── */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 9px;
    box-sizing: border-box;
    z-index: 10005;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 9px;
    opacity: 1;
    transition: all 0.25s ease-in-out;
}

/* ── Menu mobile — overlay & panneau ─────────────────────────────────────── */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 99995;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 70px 25px 25px 25px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    font-size: 2em;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s;
}

.mobile-menu-nav a:hover {
    color: #e60000;
}

.mobile-menu-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-categories h4 {
    margin: 0 0 10px 0;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.mobile-menu-categories a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
    padding: 5px 0;
    transition: color 0.2s;
}

.mobile-menu-categories a:hover {
    color: #e60000;
}

/* ── Responsive — Mobile (max 768px) ─────────────────────────────────────── */

@media (max-width: 768px) {
    .desktop-search-container {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .category-bar {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
    }

    .cart-text {
        display: none;
    }

    .lang-switcher {
        font-size: 0.9em;
    }

    .header-inner {
        padding: 8px 15px !important;
    }

    #main-header img {
        height: 40px !important;
    }

    .content-wrapper {
        padding: 15px !important;
        margin-top: 15px !important;
    }

    h1 {
        font-size: 2em !important;
    }
}

.filter-bar-container,
.video-card,
.empty-state,
.partner-card-row,
.partner-logo-container,
.cart-items-container,
.cart-summary-aside,
.video-reviews-widget,
.review-card,
.category-card,
.accessory-card,
.actress-card,
.result-card-secondary,
.contact-form-wrapper,
.cart-empty-state {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.actress-profile header,
.partner-profile header,
.category-profile header,
.accessory-profile header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 30px !important;
}

.video-card h3,
.partner-card-row .partner-body h3,
.cart-item-title,
.item-price-display,
.video-content h1,
.video-reviews-widget h3,
.static-page h1 {
    color: var(--text-color) !important;
}

.card-footer,
.cart-item-row,
.cart-footer-actions {
    border-top-color: var(--border-color) !important;
    border-bottom-color: var(--border-color) !important;
    background: var(--card-bg) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

select,
input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 6px;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pagination a,
.filter-group select {
    background: var(--input-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--input-border) !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.actress-profile a,
.partner-profile a,
.category-profile a,
.accessory-profile a {
    color: var(--accent-color) !important;
}

.actress-profile a:hover,
.partner-profile a:hover,
.category-profile a:hover,
.accessory-profile a:hover {
    color: var(--accent-hover) !important;
}

.hamburger-btn span {
    background: var(--text-color) !important;
}

/* Fix text colors for footer when in dark mode */
footer,
footer * {
    color: var(--text-muted) !important;
}

footer strong,
footer h4,
footer a {
    color: var(--text-color) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

footer a.footer-social-link {
    color: var(--text-muted) !important;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

footer a.footer-social-link:hover {
    color: var(--text-color) !important;
}

/* Card components specific styling */
.category-card,
.accessory-card,
.actress-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-card:hover,
.accessory-card:hover,
.actress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.08);
}

.result-card-secondary {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.contact-form-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 30px auto;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Pagination component */
.pagination a {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--input-border) !important;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--nav-hover-bg) !important;
    border-color: var(--accent-color) !important;
}

.pagination a.active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
    cursor: default;
}

/* Page Headers & General Layout Uniformity */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5em;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1em;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Static pages layout */
.static-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
}

.static-page-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 40px 0;
}

.static-page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    transition: border-color 0.3s ease;
}

.static-page-title {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Page Hero Videos */
.page-video-hero {
    width: 100%;
    margin: 0 auto 35px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    aspect-ratio: 16/9;
}

.page-video-hero video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Card links uniformity */
.grid-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Grids and Cards */
.actress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.actress-photo {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    /*background: var(--input-bg);*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*border-bottom: 1px solid var(--border-color);*/
}

.actress-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actress-photo-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--input-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.actress-photo-placeholder svg {
    color: var(--text-muted);
}

.actress-name {
    margin: 15px 10px;
    font-size: 1.1em;
    color: var(--accent-color);
    text-align: center;
}

.accessory-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.accessory-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #111, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #ff7b00, #ff0055);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--accent-color);
}

.card-description {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.card-action-link {
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Profiles detail pages */
.profile-photo-img {
    /*width: 180px;*/
    height: 180px;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-photo-img-tall {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
    min-width: 280px;
}

.profile-title {
    font-size: 3em;
    margin: 0 0 10px 0;
    line-height: 1.1;
    font-weight: 800;
}

.profile-meta {
    color: var(--accent-color);
    font-weight: bold;
    margin: 0 0 20px 0;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-description {
    max-width: 800px;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1.05em;
}

/* Accessibility visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Image 16:10 */
.card-image-16-10 {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

/* Empty grids and messages */
.empty-grid-message {
    grid-column: 1/-1;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px 0;
}

.empty-desc-message {
    color: var(--text-muted);
    font-style: italic;
}

/* Profiles detail pages - additional styles */
.profile-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4em;
    font-weight: bold;
}

.profile-photo-placeholder-accessory {
    background: linear-gradient(135deg, #111, #444);
}

.profile-photo-placeholder-category {
    background: linear-gradient(135deg, #ff7b00, #ff0055);
}

/* Partner show specific classes */
.partner-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-info {
    flex-grow: 1;
}

.partner-status-badge {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partner-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.partner-placeholder {
    font-size: 3em;
    filter: grayscale(0.5);
}

.partner-profile .partner-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-color);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.15);
}

.partner-website-btn:hover {
    background: var(--accent-hover);
}

.partner-videos-title {
    font-size: 1.8em;
    font-weight: 800;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    letter-spacing: -0.3px;
}

/* Forms layout and components */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--text-color);
}

.form-required {
    color: var(--accent-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

.form-textarea {
    resize: vertical;
}

.cf-turnstile-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.2);
}

.form-submit-btn:hover {
    background: var(--accent-hover);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95em;
    border: 1px solid transparent;
}

.alert-success {
    background: #e6f9ed;
    color: #1e7e34;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #fdf2f2;
    color: #c00;
    border-color: #fcc;
}

/* ── Bouton Call-to-Action (CTA) pour pages statiques ── */
.cta-container {
    text-align: center;
    margin: 35px auto;
    width: 100%;
}

.btn-cta {
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
    padding: 14px 35px;
    background-color: var(--accent-color);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    border: none;
    box-sizing: border-box;
}

.btn-cta:hover {
    background-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.45);
    transform: translateY(-2px);
}

.btn-cta:active {
    transform: translateY(0);
}