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

body {
    font-family: 'roboto', Helvetica, Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Landing Page Styles */
.landing-page {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.landing-header {
    text-align: center;
    padding: 20px 0;
}

.logo h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.landing-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.feature-card p {
    opacity: 0.9;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #1e3c72;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.arrow {
    margin-left: 10px;
    font-size: 1.3rem;
}

.landing-footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* App Page Styles */
.app-page {
    background: linear-gradient(to bottom, #f0f4f8 0%, #d9e8f5 100%);
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.search-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.app-title {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.app-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-label {
    display: block;
    color: #1e3c72;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.select-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.country-select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.country-select:focus {
    outline: none;
    border-color: #2a5298;
}

.explore-button {
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.explore-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a5298;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading p {
    color: #666;
    font-size: 1.1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    color: #1e3c72;
    font-size: 2rem;
}

.secondary-button {
    background: #f0f4f8;
    color: #1e3c72;
    border: 2px solid #2a5298;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.secondary-button:hover {
    background: #e0eaf5;
}

.culture-info {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.culture-info h1,
.culture-info h2,
.culture-info h3 {
    color: #1e3c72;
    margin-top: 25px;
    margin-bottom: 15px;
}

.culture-info p {
    margin-bottom: 15px;
}

.culture-info strong {
    color: #2a5298;
}

.error-message {
    text-align: center;
    padding: 40px;
}

.error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.error-message p {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

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

    .search-section,
    .results-section {
        padding: 25px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-header h2 {
        font-size: 1.5rem;
    }
}
