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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

/* Container and Common Components */
.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.header {
    margin-bottom: 0;
}

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

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.description {
    color: #999;
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Redirect Page Styles */
.location {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}

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

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

.fallback {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Disambiguation Page Styles */
.places-list {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-top: 20px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
}

.place-item {
    display: block;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
    background: white;
    color: inherit;
}

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

.place-item:hover {
    background: #f9f9f9;
    padding-left: 40px;
}

.place-label {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.place-coords {
    color: #999;
    font-size: 12px;
    font-family: "Monaco", "Courier New", monospace;
}

.count {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* About Page Styles */
.section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.section:first-child {
    border-top: none;
    margin-top: 0;
}

.section-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.credit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.credit-logo {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.credit-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 3px;
}

.credit-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

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

.meta-label {
    color: #999;
    font-weight: 500;
}

.meta-value {
    color: #333;
    font-weight: 500;
    text-align: right;
}
