/* === General Reset & Font === */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Focus Styles === */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #6366f1;
}

/* === Form floating placeholder === */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* === Premium Card Defaults === */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-header {
  border-radius: 16px 16px 0 0 !important;
}

/* === Button Transitions === */
.btn {
  transition: all 0.2s ease;
}

.btn-primary {
  background: #6366f1;
  border-color: #6366f1;
  border-radius: 12px;
}

.btn-primary:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
  border-color: #6366f1;
  color: #6366f1;
  border-radius: 12px;
}

.btn-outline-primary:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* === Link transitions === */
a {
  transition: color 0.2s ease;
}

/* === Smooth scroll === */
html {
  scroll-behavior: smooth;
}

/* === Table improvements === */
.table th {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

/* === Selection color === */
::selection {
  background: rgba(99, 102, 241, 0.15);
  color: #1e293b;
}
/* === WEEKLY SCHEDULE (MODERN REDESIGN) === */

/* Wrapper & Background */
.schedule-wrapper {
    background-color: #fcfaff; /* Very light purple tint */
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Header Section */
.schedule-header {
    text-align: center;
    padding: 60px 0 40px;
}
.sh-date-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Modern Tabs */
.sh-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 999px;
    position: relative;
}
.sh-tab-btn {
    border: none;
    background: transparent;
    padding: 10px 32px;
    border-radius: 999px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sh-tab-btn.active {
    background: #8b5cf6; /* Vivid Purple */
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.sh-tab-btn:hover:not(.active) {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.05);
}

/* Daily Card Container */
.daily-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.05); /* Softer shadow */
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.daily-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.1);
}

/* Daily Header */
.daily-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
}
.dh-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}
.dh-badge {
    background: #8b5cf6;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Course Row */
.course-row {
    display: flex;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}
.course-row:last-child {
    border-bottom: none;
}
.course-row:hover {
    background: #fafbff;
}

/* Time Column */
.cr-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 32px;
    min-width: 60px;
}
.cr-start {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.cr-end {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

/* Info Column */
.cr-info {
    flex: 1;
}
.cr-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}
.cr-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.cr-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.cr-tag-red { background: #fee2e2; color: #ef4444; } /* Daily */
.cr-tag-green { background: #dcfce7; color: #10b981; } /* Seans */

.cr-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 10px;
}

/* Equipment Box */
.cr-equip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #475569;
}
.cr-equip i { color: #8b5cf6; }

/* Action Column */
.cr-action {
    margin-left:auto;
    padding-left: 20px;
}

/* Modern Buttons */
.btn-modern-join {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all 0.3s;
    display: inline-flex;
}
/* === EKIPMAN BÖLÜMÜ (COMPACT/ORIGINAL - 3x3 Layout) === */
.equip-wrapper {
    border-radius: 32px;
    background: transparent;
    padding: 0;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.equip-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Auto-fit for responsiveness */
}

/* Force 3 columns on large screens if desired, or stick to auto-fit */
@media (min-width: 1200px) {
    .equip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.equip-item { perspective: 1000px; }

.equip-flip {
    position: relative;
    width: 100%;
    height: 220px; /* REVERTED TO SMALLER HEIGHT */
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-radius: 20px;
    cursor: pointer;
}
.equip-item:hover .equip-flip { transform: rotateY(180deg); }

.equip-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 20px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

/* FRONT FACE */
.equip-front {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.2);
}

.equip-icon {
    width: 64px; height: 64px; /* SMALLER ICON */
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15);
    font-size: 2rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.equip-img-box {
    width: 100px; height: 100px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}

.equip-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.equip-name {
    font-size: 1.1rem; /* SMALLER TEXT */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.equip-spec {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 8px;
}

/* BACK FACE */
.equip-back {
    background: #0f172a;
    color: #f1f5f9;
    transform: rotateY(180deg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
    padding: 24px 20px;
}

.equip-back-desc {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 500;
}

.equip-chip {
    display: inline-flex;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    margin-top: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.btn-modern-join:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    color: #fff;
}
.btn-modern-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


/* === MODERN HOMEPAGE STYLES (Cards vs Tables) === */

/* Section Spacing */
section.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Program Card Container (Vertical Stack) */
.program-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Session Card */
.session-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.12); /* Soft Depth */
    border-color: #e2e8f0;
}

/* Left: Time Column */
.session-time-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    margin-right: 24px;
    padding-right: 24px;
    border-right: 2px solid #f8fafc;
}

.session-start {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    letter-spacing: -0.03em;
}

.session-end {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
}

/* Center: Info Column */
.session-info {
    flex: 1;
}

.session-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f0fdf4;
    color: #16a34a; /* Green for Active/Seance */
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.session-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.session-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.session-instructor i {
    color: #8b5cf6; /* Primary Purple Accent */
}

/* Right: Action Column */
.session-action {
    margin-left: auto;
    padding-left: 20px;
}

.btn-join-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-join-card:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-join-card.primary {
    background: #7c3aed;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn-join-card.primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Equipment Chip */
.equip-chip-small {
    display: inline-flex;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 10px;
    align-items: center;
    gap: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .session-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    
    .session-time-col {
        flex-direction: row;
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        gap: 10px;
        align-items: baseline;
        width: 100%;
        margin-bottom: 8px;
        border-bottom: 1px solid #f8fafc;
        padding-bottom: 12px;
        justify-content: flex-start;
    }
    
    .session-action {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
    
    .btn-join-card {
        width: 100%;
        justify-content: center;
    }
}

/* === PAKET KARTLARI (Global) === */
.pkg-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 32px 28px;
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
}
.pkg-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed 0%, #6366f1 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}
.pkg-card:hover::before { opacity: 1; }
.pkg-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 12px;
}
.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}
.pkg-price .currency {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
    vertical-align: super;
    margin-right: 2px;
}
.pkg-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
}
.pkg-detail {
    font-size: 0.85rem;
    color: #64748b;
}
.pkg-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}
.pkg-btn:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

/* Image Background Support */
.pkg-has-image {
    background-size: cover;
    background-position: center;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.pkg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s;
}
.pkg-has-image:hover .pkg-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
}
.pkg-has-image .pkg-title, 
.pkg-has-image .pkg-price, 
.pkg-has-image .pkg-detail,
.pkg-has-image .pkg-price span,
.pkg-has-image .pkg-price .currency,
.pkg-has-image .d-flex {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.pkg-has-image .pkg-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff;
}
.pkg-has-image .pkg-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
}
.pkg-has-image .pkg-btn:hover {
    background: #fff;
    color: #000;
}

