/*
 * TECHNICAL LUXURY - LIGHT MODE MINIMALISM
 * Official Theme Styles for Auth & Dashboard
 */

:root {
    --op-bg: #f8f8f8;
    --op-card: #ffffff;
    --op-accent: #c3e56f;
    --op-text: #000000;
    --op-text-dim: #999999;
    --op-border: #eeeeee;
    --op-shadow: 0 30px 60px rgba(0,0,0,0.05);
    --op-danger: #ff4d4d;
}

/* HIDE DEFAULT PAGE TITLES ON AUTH/DASH PAGES */
.page-template-default .entry-title, 
.page-template-default .page-header,
.op-light-theme-wrap ~ .entry-title,
.op-light-theme-wrap h1.title {
    display: none !important;
}

#custom-cursor, #cursor-aura {
    z-index: 99999;
    pointer-events: none;
}

/* GLOBAL WRAP */
.op-light-theme-wrap {
    background: var(--op-bg);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* FORCE DEFAULT CURSOR ONLY ON MODALS AND DURING EDITING */
.op-modal, .op-modal *, .op-sidebar-card, .op-sidebar-card * {
    cursor: auto !important;
}

body.op-modal-open {
    /* No scroll lock here, only used for cursor visibility */
}

.op-light-theme-wrap::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(#eee 1px, transparent 1px), linear-gradient(90deg, #eee 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    transform: translateZ(0); /* Hardware acceleration */
}

/* AUTH CARDS */
.op-auth-card-wp {
    width: 100%;
    max-width: 480px;
    background: var(--op-card);
    border: 1px solid var(--op-border);
    padding: 70px 60px;
    box-shadow: var(--op-shadow);
    position: relative;
    margin: 60px auto;
}

.op-auth-card-wp::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 60px; height: 60px;
    border-top: 3px solid var(--op-accent);
    border-left: 3px solid var(--op-accent);
}

.op-tech-tag {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ccc;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.op-auth-h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    line-height: 0.85;
    margin: 0 0 50px 0;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--op-text);
}

/* FORM ELEMENTS */
.op-wp-form-group { margin-bottom: 25px; }
.op-wp-form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 12px;
}

.op-wp-form-group input {
    width: 100%;
    height: 60px;
    border: 1px solid var(--op-border);
    background: #fafafa;
    padding: 0 20px;
    font-size: 15px;
    box-sizing: border-box;
    transition: 0.3s;
}

.op-wp-form-group input:focus {
    outline: none;
    border-color: var(--op-text);
    background: #fff;
}

.op-btn-submit-wp {
    width: 100%;
    height: 70px;
    background: var(--op-text);
    color: #fff;
    border: none;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    margin-top: 20px;
}

.op-btn-submit-wp:hover {
    background: var(--op-accent);
    color: var(--op-text);
}

/* DASHBOARD SPECIFIC */
.op-dash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 60px;
}

.op-dash-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

@media (max-width: 1200px) {
    .op-dash-grid { grid-template-columns: 1fr; }
}

.op-dash-header { margin-bottom: 80px; }
.op-dash-h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -4px;
}

.op-dash-h1 span {
    color: transparent;
    -webkit-text-stroke: 1px #ddd;
}

/* DASHBOARD CARDS */
.op-res-card {
    background: var(--op-card);
    border: 1px solid var(--op-border);
    padding: 50px;
    margin-bottom: 30px;
    box-shadow: var(--op-shadow);
    transition: 0.4s;
}

.op-res-card:hover {
    border-color: var(--op-text);
    transform: translateX(10px);
}

.op-card-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid var(--op-border);
    padding-top: 30px;
    margin-top: 30px;
}

.op-btn {
    height: 50px;
    padding: 0 25px;
    border: 1px solid var(--op-text);
    background: transparent;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.op-btn-black { background: var(--op-text); color: #fff; }
.op-btn-black:hover { background: var(--op-accent); color: var(--op-text); border-color: var(--op-accent); }

.op-btn-danger { border-color: #eee; color: #ccc; }
.op-btn-danger:hover { border-color: var(--op-danger); color: var(--op-danger); background: #fff5f5; }

/* SIDEBAR */
.op-sidebar-card {
    background: var(--op-text);
    color: #fff;
    padding: 50px;
    position: sticky;
    top: 60px;
}

.op-side-title {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--op-accent);
}

.op-data-row {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.op-data-row label {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* 2026 FIX: HIDE WP PAGE TITLE GLOBALLY ON LUXURY PAGES */
header.entry-header, 
h1.entry-title,
.entry-title,
.page-header {
    display: none !important;
}

/* BOOKING ENGINE GRID FIXES */
.op-booking-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 90%;
}

.op-booking-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    margin-top: 50px;
}

@media (max-width: 1100px) {
    .op-booking-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .op-booking-right {
        position: relative;
        top: 0;
    }
}

.op-booking-card {
    background: var(--op-card);
    border: 1px solid var(--op-border);
    padding: 50px;
    box-shadow: var(--op-shadow);
}

@media (max-width: 768px) {
    .op-booking-card {
        padding: 30px 20px;
    }
    .op-dash-h1 {
        font-size: 3rem !important;
        letter-spacing: -2px !important;
    }
    .op-booking-header-main {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }
    .op-cal-days-grid, .op-cal-weekdays, .op-slots-grid-pro {
        max-width: 100%;
    }
}

/* SERVICES LIST PRO */
.op-services-list-pro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.op-service-item-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border: 1px solid var(--op-border);
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.op-service-item-pro:hover {
    border-color: var(--op-text);
    transform: translateX(10px);
}

.op-service-item-pro.active {
    background: #000;
    border-color: #000;
}

.op-service-item-pro.active .op-service-title { color: #fff; }
.op-service-item-pro.active .op-service-price { color: var(--op-accent); }
.op-service-item-pro.active .op-service-check { display: block; }

.op-service-title { font-weight: 800; font-size: 14px; text-transform: uppercase; }
.op-service-price { font-size: 12px; color: var(--op-text-dim); }
.op-service-check { display: none; color: var(--op-accent); font-weight: 900; }

/* CALENDAR & SLOTS */
.op-card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.op-month-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.op-nav-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 0 10px; }
.op-cal-weekdays { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center; 
    margin-bottom: 20px; 
    max-width: 450px;
}

.op-cal-days-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 5px; 
    max-width: 450px;
}

.op-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.op-cal-day:hover:not(.empty):not(.past) { background: #000; color: #fff; }
.op-cal-day.selected { background: var(--op-accent); color: #000; border-color: var(--op-accent); }
.op-cal-day.past { opacity: 0.2; cursor: default; }

.op-slots-grid-pro { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 10px; 
    max-width: 450px;
}

.op-slot-pro {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--op-border);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

.op-slot-pro:hover:not(.taken) { background: #000; color: #fff; border-color: #000; }
.op-slot-pro.selected { background: #000; color: var(--op-accent); border-color: #000; }
.op-slot-pro.taken { 
    opacity: 0.05 !important; 
    cursor: not-allowed !important; 
    background: #eee !important; 
    pointer-events: none !important;
    border-color: transparent !important;
}

/* SUMMARY */
.op-premium-summary {
    background: #fdfdfd;
    border: 1px solid var(--op-border);
    padding: 30px;
}

.op-summary-item {
    display: inline-block;
    padding: 5px 12px;
    background: #eee;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    margin: 0 5px 5px 0;
}

.op-summary-meta {
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.op-meta-item { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 11px; }
.op-meta-item label { color: var(--op-text-dim); text-transform: uppercase; font-weight: 900; }
.op-meta-item span { font-weight: 900; }

.op-btn-submit-wp {
    width: 100%;
    height: 60px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 768px) {
    /* 1. GLOBAL LAYOUTS */
    .op-dash-container, .op-booking-container {
        padding: 60px 15px !important;
        width: 100% !important;
    }
    
    .op-dash-header, .op-booking-header-main {
        margin-bottom: 40px !important;
        text-align: center;
    }

    .op-dash-h1 {
        font-size: 3.5rem !important;
        letter-spacing: -2px !important;
        line-height: 0.9 !important;
    }

    /* 2. CARDS & DASHBOARD */
    .op-auth-card-wp, .op-res-card, .op-booking-card, .op-sidebar-card {
        padding: 40px 20px !important;
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .op-res-card:hover {
        transform: none !important; /* Disable hover translation on mobile */
    }

    .op-card-actions {
        flex-direction: column;
        gap: 10px;
    }

    .op-btn {
        width: 100% !important;
        height: 60px !important;
        font-size: 12px !important;
    }

    /* 3. CALENDAR & TIME SLOTS (CRITICAL) */
    .op-cal-weekdays, .op-cal-days-grid {
        max-width: 100% !important;
        gap: 2px !important;
    }

    .op-cal-day {
        height: 50px !important; /* More compact for mobile viewports */
        font-size: 14px !important;
    }

    .op-slots-grid-pro {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 slots per row on mobile */
        max-width: 100% !important;
        gap: 8px !important;
    }

    .op-slot-pro {
        height: 55px !important;
        font-size: 13px !important;
    }

    /* 4. SERVICES LIST */
    .op-service-item-pro {
        padding: 25px 20px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .op-service-main {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .op-service-title {
        font-size: 13px !important;
        max-width: 70%;
    }

    /* 5. INPUTS & FORMS */
    .op-wp-form-group input, .op-summary-input-box {
        height: 65px !important;
        font-size: 16px !important; /* Prevent iOS zoom on focus */
        padding: 0 15px !important;
    }

    .op-auth-h2 {
        font-size: 2.8rem !important;
        margin-bottom: 30px !important;
    }

    /* 6. SIDEBAR & SUMMARY */
    .op-sidebar-card {
        position: relative !important;
        top: 0 !important;
        margin-top: 30px;
    }

    .op-premium-summary {
        padding: 30px 15px !important;
    }

    .op-summary-meta {
        grid-template-columns: 1fr !important;
    }

    .op-btn-submit-wp {
        height: 75px !important;
        padding: 0 20px !important;
    }

    /* 7. MOBILE ONLY BUTTONS */
    .op-btn-mobile-gray {
        display: flex !important;
        width: 100%;
        height: 55px;
        background: #f0f0f0;
        color: #888;
        border: 1px solid #e0e0e0;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 900;
        font-size: 11px;
        letter-spacing: 1px;
        margin-top: 20px;
    }
}

.op-btn-mobile-gray { display: none; }
