/**
 * Fork-It Stylesheet
 * Mobile-first responsive design with bright, modern aesthetic
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #52BE80;
    --warning-color: #F7DC6F;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E1E8ED;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.session-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.card h2,
.card h3,
.card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card h2 {
    font-size: 1.75rem;
}

.card h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #FF5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #3AB5AD;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-vote {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-yes {
    background: var(--success-color);
    color: white;
}

.btn-yes:hover {
    background: #45A069;
}

.btn-no {
    background: #E74C3C;
    color: white;
}

.btn-no:hover {
    background: #C0392B;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Participants */
.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.participant {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Restaurants */
.restaurants-list {
    margin-bottom: 2rem;
}

.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.nearby-restaurant {
    border-left-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.1) 0%, rgba(255, 255, 255, 1) 100%);
}

.btn-add-nearby {
    white-space: nowrap;
}

/* Action buttons for restaurants */
.restaurant-item a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.restaurant-item a.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.restaurant-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.restaurant-info .cuisine {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.restaurant-info .price {
    color: var(--primary-color);
    font-weight: 600;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Filters */
.filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-options label {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    cursor: pointer;
    font-weight: normal;
    transition: background 0.2s;
}

.filter-options label:hover {
    background: var(--border-color);
}

.filter-options input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Add Restaurant */
.add-restaurant {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* Wheel */
.wheel-container {
    text-align: center;
    padding: 2rem 0;
}

.wheel-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.sound-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Result */
.result-container {
    text-align: center;
}

.result-restaurant {
    padding: 2rem;
}

.result-restaurant h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-restaurant .cuisine {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.result-restaurant .price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Map */
#map {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}

#locationPickerMap {
    border-radius: 8px;
    overflow: hidden;
}

#locationMapContainer {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filters {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .restaurant-item {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    body {
        padding: 2rem;
    }
    
    .card {
        padding: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Pagination */
.pagination {
    margin-top: 1rem;
}

.pagination-btn {
    min-width: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background: var(--accent-color);
    color: white;
}
