/* Main Stylesheet - Common Styles */

:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #6b7280;
    --border-radius: 8px;
    --max-width: 800px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--gray-50);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.language-switcher a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    background: var(--gray-100);
}

.language-switcher a.active {
    background: var(--primary-color);
    color: white;
}

/* Main Content */
main {
    padding: 40px 0;
}

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

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 32px 0;
    margin-top: 40px;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

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

footer a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Apps Grid Section */
.apps-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    color: var(--text-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* App Card */
.app-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    object-fit: cover;
    flex-shrink: 0;
}

.app-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.app-category {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.app-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.store-button {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.store-button.android {
    background: #01875f;
    color: white;
}

.store-button.android:hover {
    background: #016d4d;
    transform: scale(1.02);
}

.store-button.ios {
    background: #000;
    color: white;
}

.store-button.ios:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}

.store-button svg {
    width: 20px;
    height: 20px;
}

.privacy-link {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.privacy-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.privacy-link a:hover {
    text-decoration: underline;
}

/* Mobile-first visibility classes */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .language-switcher {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 20px 0 8px;
        min-height: auto !important;
        height: auto !important;
        margin-top: 0;
        background: linear-gradient(180deg, #2f5fe0, #2a56c6);
    }

    .hero h1 {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 500;
        letter-spacing: -0.01em;
        opacity: 0.92;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .hero p {
        font-size: 0.78rem;
        line-height: 1.3;
        opacity: 0.9;
        margin-bottom: 8px;
    }

    .apps-section {
        padding: 8px 0 24px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 0.9rem;
    }

    .hero p {
        font-size: 0.72rem;
    }

    .app-card {
        padding: 24px;
    }

    .store-buttons {
        flex-direction: column;
    }

    .store-button {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    header {
        position: static;
        box-shadow: none;
    }

    .language-switcher {
        display: none;
    }

    footer {
        margin-top: 20px;
        border-top: 1px solid var(--gray-200);
    }

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