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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #1a365d;
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1, header .logo h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

header h1 a, header .logo h1 a {
    color: white;
    text-decoration: none;
}

/* Language Selector */
.language-list {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.language-list a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.language-list a.curr {
    background-color: #4299e1;
    color: white;
    font-weight: 500;
}

.language-list a:hover {
    background-color: #3182ce;
    color: white;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

nav a {
    color: #ebf8ff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a.curr {
    font-weight: 600;
}

nav a.curr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #63b3ed;
}

nav a:hover {
    color: #bee3f8;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Country Cards (for index.html) */
.country-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.country-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.country-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
}

.country-card h2 a {
    color: inherit;
    text-decoration: none;
}

.country-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.country-card button {
    width: 100%;
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-card button:hover {
    background-color: #3182ce;
}

/* Country Specific Pages */
.info, .generate-section, .format-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info h1, .generate-section h2, .format-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
}

.info p, .format-section p {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1rem;
}

button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 1rem 0;
}

button:hover {
    background-color: #3182ce;
}

#phone-numbers {
    margin: 1rem 0;
}

#phone-numbers div {
    background-color: #edf2f7;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-family: monospace;
}

/* Footer */
footer {
    background-color: #1a365d;
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}