/* Padel ABC Mobile Mockups - Native iOS Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #4A9B6F;
    --primary-dark: #3d8159;
    --primary-light: #e8f5ed;
    --secondary: #667eea;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    --info: #007AFF;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #424242;
    --gray-800: #212121;
    --gray-900: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--gray-800);
    background: var(--gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile Container */
.mobile-container {
    max-width: 428px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

/* Status Bar */
.status-bar {
    height: 44px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
}

.status-bar-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header */
.mobile-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.header-back {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -12px;
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.header-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.lang-switcher {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Content */
.mobile-content {
    padding: 20px;
    padding-bottom: 100px;
    background: var(--gray-50);
    min-height: calc(100vh - 100px);
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.form-input, .form-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Buttons */
.btn {
    height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chips */
.chip-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    border: 1.5px solid var(--gray-300);
    background: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Date Pills */
.date-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    margin: 0 -20px;
    padding: 4px 20px;
    -webkit-overflow-scrolling: touch;
}

.date-scroll::-webkit-scrollbar {
    display: none;
}

.date-pill {
    min-width: 80px;
    height: 88px;
    border-radius: 16px;
    border: 1.5px solid var(--gray-300);
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.date-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.date-pill-day {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
}

.date-pill-date {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

/* Time Slots Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.time-slot {
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-300);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.available {
    border-color: var(--primary);
    color: var(--primary);
}

.time-slot.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.time-slot.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Court Card */
.court-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.court-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.court-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.court-type {
    font-size: 13px;
    color: var(--gray-500);
}

.court-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.court-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-warning {
    background: #FFF4E5;
    color: var(--warning);
}

.badge-pending {
    background: #F0F0F0;
    color: var(--gray-600);
}

/* QR Code */
.qr-container {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-message {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* Info Row */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 15px;
    color: var(--gray-600);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.info-total {
    padding-top: 12px;
    border-top: 2px solid var(--gray-300);
    margin-top: 12px;
}

.info-total .info-label,
.info-total .info-value {
    font-size: 18px;
    font-weight: 700;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 428px;
    width: 100%;
    height: 83px;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 8px 0 20px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
}

/* Payment Method */
.payment-method {
    background: white;
    border: 1.5px solid var(--gray-300);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
}

.payment-desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--gray-500); }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Safe Area Support */
@supports (padding: max(0px)) {
    .mobile-content {
        padding-bottom: max(100px, env(safe-area-inset-bottom));
    }

    .bottom-nav {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        height: max(83px, calc(83px + env(safe-area-inset-bottom)));
    }
}
