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

:root {
    --primary-color: #08273F;
    --accent-color: #1E88E5;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #FFFFFF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0A3A5C 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.content {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Section */
.logo-section {
    margin-bottom: 32px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
    animation: fadeIn 0.5s ease-in;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Loading Section */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Action Section */
.action-section {
    padding: 20px 0;
    animation: fadeIn 0.3s ease-in;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.store-button:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.store-button:active {
    transform: translateY(0);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-icon {
    font-size: 20px;
}

.store-text {
    font-size: 16px;
}

/* Store Badges */
.store-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-badge img {
    height: 40px;
    width: auto;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Error Section */
.error-section {
    padding: 20px;
    animation: fadeIn 0.3s ease-in;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--error-color);
    margin-bottom: 12px;
}

.error-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .content {
        padding: 30px 20px;
    }

    .app-title {
        font-size: 20px;
    }

    .logo {
        width: 64px;
        height: 64px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-description {
        font-size: 13px;
    }

    .store-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #FFFFFF;
        --text-secondary: #CCCCCC;
        --bg-primary: #1A1A1A;
        --bg-secondary: #2A2A2A;
        --border-color: #404040;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    body {
        background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    }
}
