/* Dual Citizenship Checker - Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

nav {
    background: #f8f9fa;
    padding: 0;
    display: flex;
    border-bottom: 2px solid #dee2e6;
}

nav a {
    padding: 15px 30px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background: #e9ecef;
    color: #667eea;
}

nav a.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

main {
    padding: 40px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 2em;
}

h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5em;
}

h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.intro {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

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

.option-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.family-tree-preview {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.family-tree-preview ul {
    list-style: none;
    margin-top: 15px;
}

.family-tree-preview li {
    padding: 10px;
    background: white;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 4px solid #667eea;
}

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

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

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

.result-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.result-card.high {
    border-color: #28a745;
    background: #f8fff9;
}

.result-card.medium {
    border-color: #ffc107;
    background: #fffef8;
}

.result-card.low {
    border-color: #6c757d;
    background: #f8f9fa;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.probability {
    text-align: center;
}

.probability-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.probability-circle.high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.probability-circle.medium {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.probability-circle.low {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.status {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
}

.result-section {
    margin-bottom: 20px;
}

.result-section ul,
.result-section ol {
    margin-left: 20px;
}

.result-section li {
    margin-bottom: 8px;
}

.requirements-met li {
    color: #28a745;
}

.requirements-missing li {
    color: #dc3545;
}

.next-steps {
    background: #fff3cd;
    padding: 15px 15px 15px 35px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.family-member-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn-remove:hover {
    background: #c82333;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.about-section {
    margin-bottom: 40px;
}

.country-list {
    margin-left: 20px;
}

.country-list li {
    margin-bottom: 10px;
}

.disclaimer-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.disclaimer-box h3 {
    color: #856404;
    margin-bottom: 15px;
}

.disclaimer-box h4 {
    color: #856404;
    margin-top: 15px;
    margin-bottom: 10px;
}

.disclaimer-box ul {
    margin-left: 20px;
}

footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-top: 2px solid #dee2e6;
    color: #6c757d;
}

footer strong {
    color: #dc3545;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .result-header h3 {
        margin-bottom: 15px;
    }
    
    nav {
        flex-direction: column;
    }
    
    nav a {
        border-bottom: 1px solid #dee2e6;
        border-left: 3px solid transparent;
    }
    
    nav a.active {
        border-bottom-color: #dee2e6;
        border-left-color: #667eea;
    }
}
