/* app.css - App-specific styling for CampusCats App */

/* iOS Status Bar */
.ios-status-bar {
    height: 44px;
    background-color: var(--soft-cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 20;
}

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

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

.ios-status-bar .battery {
    width: 25px;
    height: 12px;
    border: 1.5px solid #000;
    border-radius: 3px;
    padding: 1px;
    position: relative;
    margin-left: 5px;
}

.ios-status-bar .battery::after {
    content: '';
    position: absolute;
    top: 2px;
    right: -4px;
    height: 6px;
    width: 3px;
    background: #000;
    border-radius: 0 2px 2px 0;
}

.ios-status-bar .battery-level {
    height: 100%;
    width: 70%;
    background: #000;
    border-radius: 1px;
}

/* Tab Bar Navigation */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 84px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 20;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--medium-gray);
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--cat-orange);
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 12px;
    font-weight: 500;
}

/* Screen Container */
.screen-container {
    height: calc(100% - 44px - 84px);
    overflow-y: auto;
    background-color: var(--soft-cream);
    position: relative;
    padding-bottom: 20px;
}

/* Map Screen Specific */
.map-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background-color: #f3f4f6;
}

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

.location-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease-out;
    z-index: 15;
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background-color: var(--medium-gray);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* Cat Profile Specific */
.photo-carousel {
    height: 45%;
    position: relative;
    overflow: hidden;
}

.carousel-pagination {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.pagination-dot.active {
    background-color: var(--white);
}

.profile-segment-control {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 16px;
    padding: 4px;
    margin: 16px 0;
}

.segment-button {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.segment-button.active {
    background-color: var(--white);
    color: var(--midnight-blue);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Cat Marker Styles */
.cat-marker {
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    transform: translate(-50%, -50%);
}

.cat-marker.regular {
    color: var(--cat-orange);
    border: 2px solid var(--cat-orange);
}

.cat-marker.needs-attention {
    color: var(--rust-red);
    border: 2px solid var(--rust-red);
}

.cat-marker.recent {
    color: var(--cat-orange);
    border: 2px solid var(--cat-orange);
    animation: pulse 2s infinite;
}

.cat-marker.favorite {
    color: var(--cat-orange);
    border: 2px solid var(--sunny-yellow);
}

.cat-marker.tnr {
    color: var(--sage-green);
    border: 2px solid var(--sage-green);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 157, 92, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 157, 92, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 157, 92, 0);
    }
}

/* Sighting Report Specific */
.photo-upload {
    background-color: var(--light-gray);
    border-radius: 16px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.photo-thumbnail {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* User Profile Specific */
.user-header {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--cat-orange);
    overflow: hidden;
}

.badge-row {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    color: var(--midnight-blue);
    flex-shrink: 0;
}

.badge.earned {
    background-color: var(--cat-orange);
    color: var(--white);
}

/* Community Screen Specific */
.announcement-banner {
    background-color: var(--cat-orange);
    color: var(--white);
    padding: 16px;
    border-radius: 16px;
    margin: 16px;
}

.calendar-view {
    margin: 0 16px 16px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
}

.calendar-days {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.day-name {
    font-size: 12px;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.day-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.day-number.today {
    background-color: var(--cat-orange);
    color: var(--white);
}

.day-number.has-event::after {
    content: '';
    width: 4px;
    height: 4px;
    background-color: var(--cat-orange);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
}

.discussion-card {
    margin: 0 16px 16px;
    background-color: var(--white);
    border-radius: 16px;
    padding: 16px;
}

/* Settings Screen Specific */
.settings-list {
    margin-top: 16px;
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

/* Toast Notifications */
.toast-info {
    background-color: var(--midnight-blue);
    color: var(--white);
    transition: opacity 0.3s;
}

.toast-success {
    background-color: var(--sage-green);
    color: var(--white);
    transition: opacity 0.3s;
}

.toast-error {
    background-color: var(--rust-red);
    color: var(--white);
    transition: opacity 0.3s;
}

.toast-location {
    background-color: var(--cat-orange);
    color: var(--white);
    transition: opacity 0.3s;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-content {
    background-color: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 330px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s forwards;
}

.slide-up {
    animation: slideUp 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}