/* Main style sheet for CampusCats App Prototype */
:root {
    /* Primary Colors */
    --cat-orange: #FF9D5C;
    --midnight-blue: #1D3557;
    --soft-cream: #FFF8F0;
    
    /* Secondary Colors */
    --sage-green: #8DB580;
    --rust-red: #BC4749;
    --dusty-blue: #A8DADC;
    
    /* Accent Colors */
    --sunny-yellow: #FFD166;
    --lilac: #9B8FCC;
    
    /* Neutrals */
    --white: #FFFFFF;
    --light-gray: #E9ECEF;
    --medium-gray: #ADB5BD;
    --dark-gray: #495057;
    --black: #212529;
}

body {
    font-family: 'SF Pro Text', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-gray);
}

.text-primary {
    color: var(--midnight-blue);
}

.bg-primary {
    background-color: var(--cat-orange);
}

/* iPhone Prototype Styling */
.prototype-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iphone-container {
    margin: 0 auto;
    /* iPhone 15 Pro dimensions */
    width: 393px;
    height: 852px;
}

.iphone-frame {
    width: 393px;
    height: 852px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.notch {
    position: absolute;
    width: 50%;
    height: 30px;
    background-color: #1a1a1a;
    top: 0;
    left: 25%;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background-color: var(--soft-cream);
    overflow: hidden;
    border: none;
    display: block;
    position: relative;
    z-index: 1;
}

/* UI Component Styling for reuse across screens */
.app-button-primary {
    background-color: var(--cat-orange);
    color: var(--white);
    border-radius: 20px;
    padding: 12px 24px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.app-button-primary:hover, .app-button-primary:focus {
    background-color: #f08c4a;
    transform: translateY(-2px);
}

.app-button-secondary {
    background-color: var(--dusty-blue);
    color: var(--midnight-blue);
    border-radius: 20px;
    padding: 12px 24px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.app-button-secondary:hover, .app-button-secondary:focus {
    background-color: #97cfd2;
    transform: translateY(-2px);
}

.app-button-tertiary {
    background-color: transparent;
    color: var(--cat-orange);
    border: 2px solid var(--cat-orange);
    border-radius: 20px;
    padding: 10px 22px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.app-button-tertiary:hover, .app-button-tertiary:focus {
    background-color: rgba(255, 157, 92, 0.1);
    transform: translateY(-2px);
}

.app-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-healthy {
    background-color: var(--sage-green);
    color: var(--white);
}

.status-monitor {
    background-color: var(--sunny-yellow);
    color: var(--black);
}

.status-needs-help {
    background-color: var(--rust-red);
    color: var(--white);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    /* Maintain fixed iPhone dimensions */
    .prototype-container {
        transform: scale(0.9);
        transform-origin: top center;
        margin-bottom: -85px;
    }
}

@media (max-width: 768px) {
    .prototype-container {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -170px;
    }
}

@media (max-width: 640px) {
    .prototype-container {
        transform: scale(0.7);
        transform-origin: top center;
        margin-bottom: -255px;
    }
    
    iframe {
        border-radius: 30px;
    }
}

/* Map Container Styling */
.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 10px;
}

.map-container .iphone-frame {
    position: relative;
    width: 100%;
    height: calc(100% - 120px);
    margin: 0 auto;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.map-filters {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1;
}

.location-button {
    position: absolute;
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.2s;
}

.location-button:hover {
    transform: scale(1.05);
}

.location-button i {
    color: var(--midnight-blue);
    font-size: 18px;
}

/* iOS Status Bar and Bottom Sheet adjustments for map view */
.ios-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background-color: transparent;
    z-index: 2;
    padding: 12px 20px;
}

.screen-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.bottom-sheet {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    z-index: 2;
    transition: transform 0.3s ease-out;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}
