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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8C42 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

main {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 5rem;
    overflow-y: auto;
}

.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.view.hidden {
    display: none;
}

.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

#suggestion-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
}

#suggestion-card h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.place-photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    border-radius: 1rem 1rem 0 0;
}

.closed-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 71, 87, 0.95);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.place-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin: 2rem 0;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.place-rating {
    color: white;
    text-align: center;
    font-size: 1rem;
    margin: 0.5rem 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.place-rating .stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.place-rating .rating-number {
    font-weight: 600;
    margin-left: 0.3rem;
}

.place-review {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.8rem;
    padding: 1rem;
    margin: 1rem 0 1.5rem;
    color: white;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.review-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.review-author {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.empty-state p:first-child {
    font-weight: 600;
    color: #333;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8C42 100%);
    color: white;
    width: 100%;
    max-width: 400px;
    padding: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary.picking {
    animation: pulse 0.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

#suggestion-card .btn-secondary {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#suggestion-card .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-danger:hover {
    background: rgba(238, 90, 111, 0.95);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}


/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: transparent;
    display: flex;
    padding: 0.5rem;
    justify-content: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: white;
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-icon {
    font-size: 1rem;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .container {
        max-width: 100%;
    }

    main {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .place-name {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.95rem;
    }
}

/* iOS-specific adjustments */
@supports (-webkit-touch-callout: none) {
    .bottom-nav {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
}

/* Animations */
@keyframes bounce-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
