/* ===================================
   Free Tourist Adventures - Main Styles
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===================================
   Homepage Styles
   =================================== */

body.homepage {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-box {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-box input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #667eea;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.city-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.city-card h2 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.city-card p {
    color: #666;
    margin-bottom: 1rem;
}

.activity-count {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.coming-soon {
    opacity: 0.6;
    position: relative;
}

.coming-soon::after {
    content: "Coming Soon";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* ===================================
   City Page Styles
   =================================== */

body.city-page {
    background: #f8fafc;
}

.city-page .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 0;
}

.back-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 1;
}

.city-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.city-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.city-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.stats-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.content {
    background: white;
    margin: -20px auto 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
}

.intro {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.activities-list {
    padding: 40px;
}

.activity-item {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left-color: #764ba2;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.activity-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.external-link-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    justify-content: center;
}

.activity-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.activity-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.activity-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.activity-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-tag {
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #e2e8f0;
}

.source-info {
    background: #e6f3ff;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #0066cc;
}

.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.submit-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.submit-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

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

    .activity-header {
        flex-direction: column;
        gap: 10px;
    }

    .external-link-badge {
        align-self: flex-start;
    }

    .container {
        padding: 1rem;
    }

    .intro,
    .activities-list,
    .cta-section {
        padding: 20px;
    }
}

/* ===================================
   Footer Styles
   =================================== */

.footer {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

.footer a:hover {
    text-decoration: underline;
}
