/* Global Styles */
:root {
    --primary-color: #2c5282;
    --secondary-color: #285e61;
    --accent-color: #ed8936;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --white: #ffffff;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --border-color: #e2e8f0;
    --border-radius: 0.375rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2a5496;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.lang-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 4rem 0;
}

.intro {
    background-color: var(--white);
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Features Grid */
.features {
    background-color: var(--bg-color);
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.15s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background-color: var(--white);
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

/* Privacy Notice */
.privacy-notice {
    background-color: #edf2f7;
    padding: 2rem 0;
    text-align: center;
}

.privacy-notice h3 {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: var(--white);
    text-decoration: underline;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee;
    color: var(--error-color);
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #e6ffed;
    color: var(--success-color);
    border: 1px solid #84e1a6;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Export Page Specific Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.page-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.quick-start-guide,
.features-overview {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.quick-start-guide h2,
.features-overview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.guide-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.guide-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.guide-item p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.guide-item ul {
    list-style: none;
    padding: 0;
}

.guide-item li {
    padding: 5px 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.guide-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

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

.feature {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Keyboard Shortcuts Styling */
.kbd-hint {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #007bff;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
}

/* Show hint on hover for discovery */
.nav-link:hover .kbd-hint-static {
    opacity: 0.8;
}

.kbd-hint-static {
    position: absolute;
    top: 2px;
    right: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.75em;
    opacity: 0.7;
}

.nav-dropdown.active .dropdown-toggle::after {
    content: ' ▲';
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item.active {
    background-color: #e5e7eb;
    font-weight: 500;
}
