/* Urban Scout Cities Web Interface - CSS */
/* Colors based on the mobile app theme */
:root {
    --primary-red: rgb(255, 51, 71);
    --secondary-gold: rgb(255, 211, 7);
    --dark-bg: rgb(44, 47, 47);
    --darker-bg: rgb(41, 41, 41);
    --light-text: rgb(255, 255, 255);
    --muted-text: rgb(204, 204, 204);
    --inactive-grey: rgb(85, 85, 85);
    --yellow-highlight: rgb(255, 207, 51);
    --success-green: rgb(46, 160, 67);
    --card-bg: rgb(58, 61, 61);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--light-text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    padding: 30px 0;
    border-bottom: 3px solid var(--primary-red);
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    flex: 1;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    font-weight: 300;
}

.stats-section {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--secondary-gold);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-gold);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-bottom: 40px;
}

/* Introduction Section */
.intro-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--inactive-grey);
}

.intro-section h2 {
    font-size: 2rem;
    color: var(--light-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.intro-section p {
    font-size: 1.1rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

.yellow-highlight {
    color: var(--yellow-highlight);
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(255, 207, 51, 0.2);
    border-radius: 4px;
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--muted-text);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--inactive-grey);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: var(--muted-text);
}

.loading-spinner-small {
    width: 30px;
    height: 30px;
    border: 3px solid var(--inactive-grey);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    border-radius: 12px;
    margin: 20px 0;
}

.error-message p {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.retry-button {
    background: var(--primary-red);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: rgba(255, 51, 71, 0.8);
    transform: translateY(-2px);
}

/* Cities Grid */
.cities-section {
    margin-top: 30px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* City Card */
.city-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid var(--inactive-grey);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--inactive-grey);
    transition: background 0.3s ease;
}

.city-card.active {
    border-color: var(--yellow-highlight);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 207, 51, 0.1) 100%);
}

.city-card.active::before {
    background: var(--yellow-highlight);
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.city-card.active:hover {
    box-shadow: 0 10px 25px rgba(255, 207, 51, 0.3);
}

.city-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
}

.city-card.active .city-name {
    color: var(--yellow-highlight);
}

.city-country {
    font-size: 1rem;
    color: var(--muted-text);
    margin-bottom: 15px;
}

.city-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.city-stat {
    text-align: center;
    flex: 1;
    padding: 10px;
    background: var(--darker-bg);
    border-radius: 8px;
}

.city-stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-gold);
}

.city-stat-label {
    font-size: 0.8rem;
    color: var(--muted-text);
    font-weight: 500;
}

.city-status {
    text-align: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.city-status.available {
    background: rgba(255, 207, 51, 0.2);
    color: var(--yellow-highlight);
    border: 1px solid var(--yellow-highlight);
}

.city-status.coming-soon {
    background: rgba(85, 85, 85, 0.3);
    color: var(--inactive-grey);
    border: 1px solid var(--inactive-grey);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    border: 2px solid var(--primary-red);
    position: relative;
}

.modal-header {
    padding: 25px 30px;
    background: var(--card-bg);
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--yellow-highlight);
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary-red);
    color: var(--light-text);
}

.modal-content {
    height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--inactive-grey);
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--muted-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: var(--yellow-highlight);
    border-bottom-color: var(--yellow-highlight);
    background: var(--card-bg);
}

.tab-button:hover:not(.active) {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* POIs List */
.pois-list, .promotions-list {
    display: grid;
    gap: 15px;
}

.poi-item, .promotion-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--inactive-grey);
    transition: all 0.3s ease;
}

.poi-item:hover, .promotion-item:hover {
    border-color: var(--secondary-gold);
    transform: translateY(-2px);
}

.poi-title, .promotion-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
}

.poi-description, .promotion-description {
    color: var(--muted-text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.poi-meta, .promotion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.poi-points {
    background: var(--secondary-gold);
    color: var(--dark-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.poi-category, .promotion-business {
    background: rgba(255, 51, 71, 0.2);
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--inactive-grey);
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-section {
        justify-content: center;
    }

    .app-title {
        font-size: 2rem;
    }

    .cities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .tab-content {
        padding: 20px;
    }

    .poi-meta, .promotion-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .app-title {
        font-size: 1.8rem;
    }

    .stats-section {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .stat-item {
        min-width: auto;
    }
} 