/* Global Styles */
:root {
    /* Enhanced vibrant color palette for cocktail theme */
    --primary-dark: #8b0000;   /* Deep Crimson */
    --primary: #e63946;        /* Vivid Raspberry */
    --secondary: #ff9f1c;      /* Vibrant Orange */
    --tertiary: #2ec4b6;       /* Turquoise */
    --accent: #ffbf69;         /* Warm Amber */
    --gradient-start: #e63946; /* For gradient effects */
    --gradient-end: #ff9f1c;   /* For gradient effects */
    --light-bg: #f8fafc;
    --dark-bg: #1f2937;
    --text-dark: #111827;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* iOS specific variables */
    --ios-status-bar-height: 44px;
    --ios-nav-bar-height: 44px;
    --ios-tab-bar-height: 83px; /* Includes safe area */
    --ios-safe-area-bottom: 34px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* iPhone Container */
.iphone-container {
    width: 375px;
    height: 812px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
}

/* iOS Status Bar */
.ios-status-bar {
    width: 100%;
    height: var(--ios-status-bar-height);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

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

.time {
    font-weight: 600;
    font-size: 14px;
}

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

.cell-signal, .wifi-signal, .battery {
    display: flex;
    align-items: center;
}

/* iOS Navigation Bar */
.ios-nav-bar {
    height: var(--ios-nav-bar-height);
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--gradient-end));
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: var(--ios-status-bar-height);
    left: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.back-button, .nav-action {
    font-size: 17px;
    color: var(--primary);
    min-width: 44px;
    display: flex;
    align-items: center;
}

.back-button i {
    margin-right: 5px;
}

/* iOS Tab Bar */
.ios-tab-bar {
    height: var(--ios-tab-bar-height);
    width: 100%;
    background: linear-gradient(135deg, var(--tertiary), var(--secondary));
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    padding-bottom: var(--ios-safe-area-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tab-item.active {
    color: var(--text-light);
    transform: translateY(-3px);
}

.tab-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.tab-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Content Area */
.content-area {
    height: calc(100% - var(--ios-status-bar-height) - var(--ios-tab-bar-height));
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Common Components */
.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 159, 28, 0.1);
    transition: all 0.3s ease;
}

.card:active {
    transform: scale(0.98);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 16px 16px 8px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 0 16px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #f57c00);
    color: white;
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--tertiary), #00897b);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ffab40);
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-lg {
    width: calc(100% - 32px);
    margin: 0 16px;
}

/* Form Elements */
input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

.space-y-2 > * + * {
    margin-top: 8px;
}

.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mr-2 { margin-right: 8px; }
.ml-2 { margin-left: 8px; }

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mr-4 { margin-right: 16px; }
.ml-4 { margin-left: 16px; }

.p-2 { padding: 8px; }
.p-4 { padding: 16px; }

.rounded-full {
    border-radius: 9999px;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Specific App Components */
.cocktail-card {
    position: relative;
    height: 220px;
    margin: 10px 6px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cocktail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cocktail-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white;
}

.cocktail-card-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.cocktail-card-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 2px 5px rgba(230, 57, 70, 0.3);
    letter-spacing: 0.5px;
}

.badge-secondary {
    background: linear-gradient(135deg, var(--secondary), #f57c00);
    box-shadow: 0 2px 5px rgba(255, 159, 28, 0.3);
}

.badge-accent {
    background: linear-gradient(135deg, var(--accent), #ffab40);
    box-shadow: 0 2px 5px rgba(255, 191, 105, 0.3);
    color: var(--text-dark);
}

/* Store UI Components */
.store-card {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.store-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 16px;
    object-fit: cover;
}

.store-info {
    flex: 1;
}

.store-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.store-meta {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.store-rating {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.store-rating i {
    color: #f59e0b;
    margin-right: 4px;
}

/* Search Bar */
.search-bar {
    margin: 16px;
    position: relative;
}

.search-bar input {
    padding: 12px 16px 12px 40px;
    border-radius: 10px;
    border: 2px solid rgba(255, 159, 28, 0.15);
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--secondary);
    box-shadow: 0 3px 15px rgba(255, 159, 28, 0.2);
}

.search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Category Pills */
.category-pills {
    display: flex;
    overflow-x: auto;
    padding: 8px 16px;
    gap: 10px;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.category-pills::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.category-pill {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    border: 1px solid rgba(255, 159, 28, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.category-pill:active {
    transform: translateY(1px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--secondary), var(--gradient-end));
    border-color: var(--secondary);
    color: white;
    box-shadow: 0 3px 8px rgba(255, 159, 28, 0.4);
}

/* Recipe Steps */
.recipe-step {
    display: flex;
    margin: 16px;
    gap: 16px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(230, 57, 70, 0.3);
}

.step-content {
    flex: 1;
}