/* TabiGo Common Styles - Nordic Functionalism */

:root {
    /* App colors - Nordic functionalism palette */
    --primary: #6B8A9A;
    --primary-light: #A2B9CC;
    --primary-dark: #4A6270;
    --secondary: #1193D4;
    --accent-rose: #B8838A;
    --accent-sage: #7FA899;
    --accent-lavender: #9B8BA8;
    --grey-50: #F8F9FA;
    --grey-100: #F3F4F6;
    --grey-200: #E5E7EB;
    --grey-300: #D1D5DB;
    --grey-400: #9CA3AF;
    --grey-500: #6B7280;
    --grey-700: #374151;
    --grey-900: #111827;
    --white: #FFFFFF;

    /* Icon colors */
    --yellow: #F4B942;
    --orange: #E87951;
    --teal: #3AA895;
    --navy: #3D4A6B;
    --pink: #E89AA0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Inter', 'Noto Sans JP', 'Noto Sans KR', 'Noto Sans TC', 'Noto Sans Thai', sans-serif;
    line-height: 1.7;
    color: var(--grey-900);
    background: var(--grey-50);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--grey-900);
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-brand span {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.language-selector {
    position: relative;
}

.language-selector select {
    background: var(--grey-100);
    color: var(--grey-900);
    border: 1px solid var(--grey-200);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23374151' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.language-selector select:hover {
    background: var(--grey-200);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Content Container */
.content-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem 4rem;
}

.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Typography */
h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--grey-900);
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--grey-900);
    margin: 1.5rem 0 0.75rem;
}

p {
    color: var(--grey-700);
    margin-bottom: 1rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--grey-700);
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

strong {
    color: var(--grey-900);
    font-weight: 600;
}

/* Footer */
.page-footer {
    background: var(--grey-900);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
