/* Main stylesheet for Didi Latrine App */

/* Base styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* Phone container for prototypes */
.phone-container {
    width: 390px;
    height: 844px;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    margin: 20px;
    display: inline-block;
    border: 12px solid #121212;
    position: relative;
}

.phone-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #121212;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.phone-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.container-label {
    text-align: center;
    font-weight: bold;
    margin-top: -15px;
    margin-bottom: 5px;
}

/* iOS status bar */
.ios-status-bar {
    background-color: black;
    color: white;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-size: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

/* Bottom tab bar */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 1.25rem;
    padding-top: 0.5rem;
    z-index: 10;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
}

.tab-item.active {
    color: #3b82f6;
}

.tab-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tab-item span {
    font-size: 0.75rem;
}

.tab-item-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6b7280;
}

.center-button {
    background-color: #3b82f6;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.tab-item-center span {
    font-size: 0.75rem;
}

/* Map container */
.map-container {
    height: calc(100vh - 134px);
    background-image: url('https://api.mapbox.com/styles/v1/mapbox/streets-v11/static/-122.4194,37.7749,12,0/600x800?access_token=pk.eyJ1IjoiZXhhbXBsZXVzZXIiLCJhIjoiY2xybXBsZW1kMGltYTJrcGR0Z3ozdjlrOCJ9.t8JwY8nsrxA6dG9dE5R6gg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Location pins */
.location-pin {
    width: 36px;
    height: 36px;
    position: absolute;
    transform: translate(-50%, -100%);
}

.pin1 {
    top: 40%;
    left: 45%;
}

.pin2 {
    top: 55%;
    left: 60%;
}

.pin3 {
    top: 30%;
    left: 30%;
}

.pin4 {
    top: 65%;
    left: 25%;
}

.active-pin {
    color: #ff3b30;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

.premium-pin {
    color: #ffcc00;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

.regular-pin {
    color: #50C2C9;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

/* Rating stars */
.rating-stars {
    color: #ffcc00;
}

/* Containers for different screens */
.content-container {
    height: calc(100vh - 134px);
    overflow-y: auto;
}

.review-container {
    height: calc(100vh - 134px);
    overflow-y: auto;
}

.profile-container {
    height: calc(100vh - 134px);
    overflow-y: auto;
}

.settings-container {
    height: calc(100vh - 7rem);
    overflow-y: auto;
}

/* Amenity icons */
.amenity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f9ff;
    color: #3b82f6;
}

/* Image gallery */
.image-gallery {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.gallery-image {
    flex: 0 0 auto;
    width: 240px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Review elements */
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats cards in profile */
.stats-card {
    border-radius: 16px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
}

/* Toggle switch styling */
.toggle-checkbox {
    right: 0;
    z-index: 5;
    opacity: 0;
}

.toggle-label {
    transition: background-color 0.2s ease;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #3b82f6;
}

.toggle-checkbox:checked + .toggle-label:before {
    right: 0;
}

/* Splash screen animations */
.splash-animation {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}