/**
 * SimplifiedCircle Studio - Yoga & Wellness Theme
 *
 * Inspired by premium yoga studio aesthetics - deep teals, warm golds,
 * and cream tones creating a grounded, welcoming atmosphere.
 *
 * @package SimplifiedCircle_Studio
 * @since 3.0.0
 */

/* ==========================================================================
   Theme Color Variables
   ========================================================================== */
:root {
    /* Primary - Deep Teal */
    --scs-theme-primary: #146a7f;
    --scs-theme-primary-hover: #0f5666;
    --scs-theme-primary-light: #1a8299;
    --scs-theme-primary-dark: #0d4f5e;

    /* Secondary - Warm Gold */
    --scs-theme-secondary: #c98c30;
    --scs-theme-secondary-light: #daa44d;
    --scs-theme-secondary-dark: #a87428;

    /* Accent - Warm Cream */
    --scs-theme-accent: #f7f3ec;
    --scs-theme-accent-light: #fdfcfa;
    --scs-theme-accent-dark: #ebe5da;

    /* Text Colors */
    --scs-theme-text-dark: #1d1e36;
    --scs-theme-text-muted: #5a5b6d;

    /* Gradients */
    --scs-theme-gradient: linear-gradient(135deg, #146a7f 0%, #1a8299 100%);
    --scs-theme-gradient-subtle: linear-gradient(135deg, rgba(20, 106, 127, 0.08) 0%, rgba(20, 106, 127, 0.03) 100%);
    --scs-theme-gradient-gold: linear-gradient(135deg, #c98c30 0%, #daa44d 100%);
    --scs-theme-gradient-warm: linear-gradient(180deg, #f7f3ec 0%, #ffffff 100%);

    /* Shadows */
    --scs-theme-shadow: 0 4px 20px rgba(20, 106, 127, 0.12);
    --scs-theme-shadow-hover: 0 8px 30px rgba(20, 106, 127, 0.18);
}

/* ==========================================================================
   Base Page Styling
   ========================================================================== */
body {
    background-color: var(--scs-theme-accent);
}

/* Schedule wrapper */
.scs-schedule-wrapper {
    background: var(--scs-theme-gradient-warm);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Header - Clean & Professional
   ========================================================================== */
.scs-schedule-header {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: var(--scs-theme-shadow);
    position: relative;
    overflow: hidden;
}

/* Teal accent bar at top */
.scs-schedule-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--scs-theme-gradient);
}

/* Navigation buttons */
.scs-schedule-nav-btn {
    background: var(--scs-theme-accent);
    border: 2px solid var(--scs-theme-accent-dark);
    color: var(--scs-theme-primary);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.scs-schedule-nav-btn:hover {
    background: var(--scs-theme-primary);
    border-color: var(--scs-theme-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Schedule title */
.scs-schedule-title {
    color: var(--scs-theme-text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Filter dropdowns */
.scs-schedule-filters select,
.scs-filter-select {
    background: #ffffff;
    border: 2px solid var(--scs-theme-accent-dark);
    color: var(--scs-theme-text-dark);
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.scs-schedule-filters select:focus,
.scs-filter-select:focus {
    border-color: var(--scs-theme-primary);
    box-shadow: 0 0 0 4px rgba(20, 106, 127, 0.12);
    outline: none;
}

/* ==========================================================================
   Class Cards - Warm & Inviting
   ========================================================================== */
.scs-class-card {
    background: #ffffff;
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.scs-class-card:hover {
    border-color: var(--scs-theme-primary-light);
    box-shadow: var(--scs-theme-shadow-hover);
    transform: translateX(6px);
}

.scs-class-card.scs-class-booked {
    border-color: var(--scs-theme-primary);
    background: linear-gradient(135deg, rgba(20, 106, 127, 0.04) 0%, rgba(20, 106, 127, 0.02) 100%);
}

/* Time badge - Teal gradient */
.scs-class-time-badge {
    background: var(--scs-theme-gradient);
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(20, 106, 127, 0.35);
}

.scs-time-start {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.scs-time-duration {
    opacity: 0.85;
    font-weight: 500;
}

/* Class info */
.scs-class-title {
    color: var(--scs-theme-text-dark);
    font-weight: 700;
}

.scs-class-description {
    color: var(--scs-theme-text-muted);
}

.scs-class-meta {
    color: var(--scs-theme-text-muted);
}

.scs-class-meta-item svg {
    color: var(--scs-theme-primary);
    opacity: 0.8;
}

/* Exclusive membership badge */
.scs-class-exclusive {
    background: var(--scs-theme-gradient-subtle);
    color: var(--scs-theme-primary);
    border-radius: 50px;
    font-weight: 600;
}

/* ==========================================================================
   Buttons - Professional & Clean
   ========================================================================== */
.scs-btn-primary,
.scs-btn-book.scs-btn-primary {
    background: var(--scs-theme-gradient);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(20, 106, 127, 0.3);
    transition: all 0.25s ease;
}

.scs-btn-primary:hover,
.scs-btn-book.scs-btn-primary:hover {
    background: linear-gradient(135deg, #0f5666 0%, #146a7f 100%);
    box-shadow: 0 6px 20px rgba(20, 106, 127, 0.4);
    transform: translateY(-2px);
}

.scs-btn-secondary {
    background: transparent;
    color: var(--scs-theme-primary);
    border: 2px solid var(--scs-theme-primary);
    border-radius: 10px;
    font-weight: 600;
}

.scs-btn-secondary:hover {
    background: var(--scs-theme-primary);
    color: #ffffff;
}

/* Gold accent button variant */
.scs-btn-gold {
    background: var(--scs-theme-gradient-gold);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(201, 140, 48, 0.3);
}

.scs-btn-gold:hover {
    box-shadow: 0 6px 20px rgba(201, 140, 48, 0.4);
}

/* Disabled/Sold out button */
.scs-btn-book.scs-btn-disabled {
    background: var(--scs-theme-accent-dark);
    color: var(--scs-theme-text-muted);
    box-shadow: none;
}

/* Booked button */
.scs-btn-book.scs-btn-booked {
    background: var(--scs-theme-primary);
    color: #ffffff;
}

/* ==========================================================================
   Schedule Day Cards (if using week/month view)
   ========================================================================== */
.scs-schedule-day {
    background: #ffffff;
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.scs-schedule-day:hover {
    border-color: var(--scs-theme-primary-light);
    box-shadow: var(--scs-theme-shadow);
}

.scs-schedule-day.scs-today {
    border: 2px solid var(--scs-theme-primary);
    box-shadow: 0 0 0 4px rgba(20, 106, 127, 0.1);
}

.scs-schedule-day-header {
    background: var(--scs-theme-accent);
    border-bottom: 1px solid var(--scs-theme-accent-dark);
}

.scs-schedule-day.scs-today .scs-schedule-day-header {
    background: var(--scs-theme-gradient);
    color: #ffffff;
}

.scs-day-name {
    color: var(--scs-theme-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.scs-day-date {
    color: var(--scs-theme-text-dark);
    font-weight: 700;
}

.scs-schedule-day.scs-today .scs-day-name,
.scs-schedule-day.scs-today .scs-day-date {
    color: #ffffff;
}

/* ==========================================================================
   Customer Portal Styling
   ========================================================================== */
.scs-customer-portal {
    background: var(--scs-theme-gradient-warm);
}

.scs-portal-section {
    background: #ffffff;
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 16px;
    box-shadow: var(--scs-theme-shadow);
}

.scs-portal-section h3 {
    color: var(--scs-theme-text-dark);
    font-weight: 700;
}

.scs-portal-avatar img {
    border: 4px solid var(--scs-theme-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scs-portal-user-info h2 {
    color: var(--scs-theme-text-dark);
}

.scs-portal-user-info p {
    color: var(--scs-theme-text-muted);
}

/* Membership Cards */
.scs-membership-card {
    border: 2px solid var(--scs-theme-accent-dark);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.scs-membership-card:hover {
    border-color: var(--scs-theme-primary-light);
    box-shadow: var(--scs-theme-shadow);
}

.scs-membership-card.scs-membership-active {
    border-color: var(--scs-theme-primary);
    background: var(--scs-theme-gradient-subtle);
}

.scs-membership-card h4 {
    color: var(--scs-theme-text-dark);
}

/* Class items in portal */
.scs-class-item {
    background: var(--scs-theme-accent);
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 12px;
}

.scs-class-item:hover {
    background: #ffffff;
    border-color: var(--scs-theme-primary-light);
    box-shadow: var(--scs-theme-shadow);
}

.scs-class-date {
    background: var(--scs-theme-gradient);
    border-radius: 10px;
    color: #ffffff;
}

.scs-class-details h4 {
    color: var(--scs-theme-text-dark);
}

.scs-class-details p {
    color: var(--scs-theme-text-muted);
}

/* ==========================================================================
   Class Signup Page
   ========================================================================== */
.scs-class-signup {
    background: var(--scs-theme-gradient-warm);
}

.scs-class-signup-header {
    background: #ffffff;
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 20px;
    box-shadow: var(--scs-theme-shadow);
}

.scs-class-date-badge {
    background: var(--scs-theme-gradient);
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(20, 106, 127, 0.3);
}

.scs-class-signup-title h1 {
    color: var(--scs-theme-text-dark);
}

.scs-class-time-info {
    color: var(--scs-theme-text-muted);
}

.scs-class-signup-main > div {
    background: #ffffff;
    border: 1px solid var(--scs-theme-accent-dark);
    border-radius: 14px;
}

.scs-class-signup-main h3 {
    color: var(--scs-theme-primary);
    font-weight: 700;
}

.scs-class-description {
    color: var(--scs-theme-text-muted);
    line-height: 1.7;
}

.scs-instructor-card {
    background: var(--scs-theme-accent);
    border-radius: 12px;
}

.scs-instructor-info strong {
    color: var(--scs-theme-text-dark);
}

.scs-instructor-info p {
    color: var(--scs-theme-text-muted);
}

.scs-location-info {
    background: var(--scs-theme-accent);
    border-radius: 12px;
}

.scs-location-icon {
    background: var(--scs-theme-gradient);
    border-radius: 10px;
    color: #ffffff;
}

.scs-location-details strong {
    color: var(--scs-theme-text-dark);
}

.scs-location-details p {
    color: var(--scs-theme-text-muted);
}

/* Signup sidebar */
.scs-signup-card {
    background: #ffffff;
    border: 2px solid var(--scs-theme-accent-dark);
    border-radius: 20px;
    box-shadow: var(--scs-theme-shadow);
}

.scs-spots-info {
    border-bottom-color: var(--scs-theme-accent-dark);
}

.scs-spots-count {
    color: var(--scs-theme-primary);
}

.scs-tag {
    background: var(--scs-theme-gradient-subtle);
    color: var(--scs-theme-primary);
    font-weight: 600;
}

.scs-price-info {
    background: var(--scs-theme-accent);
    border-radius: 10px;
}

.scs-price {
    color: var(--scs-theme-text-dark);
}

.scs-price-label {
    color: var(--scs-theme-text-muted);
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */
.scs-loading {
    padding: 4rem;
}

.scs-spinner {
    border: 4px solid var(--scs-theme-accent-dark);
    border-top-color: var(--scs-theme-primary);
    border-radius: 50%;
    animation: scs-spin 0.8s linear infinite;
}

@keyframes scs-spin {
    to { transform: rotate(360deg); }
}

.scs-schedule-empty,
.scs-no-classes {
    background: #ffffff;
    border: 2px dashed var(--scs-theme-accent-dark);
    border-radius: 16px;
}

.scs-schedule-empty p,
.scs-no-classes p {
    color: var(--scs-theme-text-muted);
}

.scs-no-classes-icon {
    color: var(--scs-theme-accent-dark);
}

.scs-portal-empty {
    background: var(--scs-theme-accent);
    border: 2px dashed var(--scs-theme-accent-dark);
    border-radius: 12px;
    color: var(--scs-theme-text-muted);
}

/* ==========================================================================
   Focus States - Accessibility
   ========================================================================== */
.scs-btn:focus,
.scs-schedule-filters select:focus,
.scs-filter-select:focus,
.scs-schedule-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 106, 127, 0.25);
}

/* ==========================================================================
   Smooth Transitions
   ========================================================================== */
.scs-class-card,
.scs-schedule-class-card,
.scs-class-card-modern,
.scs-btn,
.scs-membership-card,
.scs-class-item,
.scs-schedule-day {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .scs-schedule-header {
        border-radius: 12px;
    }

    .scs-class-card {
        border-radius: 12px;
    }

    .scs-class-time-badge {
        border-radius: 10px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .scs-class-time-badge,
    .scs-class-date {
        background: var(--scs-theme-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
