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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    overflow: hidden;
    height: 100vh;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
}

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

/* Main Screen Styles */
.main-screen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2a1a2e, #492e57);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.main-logo {
    margin-top: 100px;
    margin-bottom: 30px;
    height: 80px;
    aspect-ratio: 1.66;
}

.main-title {
    color: white;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    padding: 0 20px;
}

.main-button {
    background: white;
    border: none;
    padding: 15px;
    width: calc(100vw - 50px);
    max-width: 400px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.main-button span {
    font-size: 16px;
    font-weight: 500;
    color: #492e57;
}

.transparent-button {
    background: transparent !important;
    border: 1px solid white !important;
    box-shadow: none !important;
}

.transparent-button span {
    color: white !important;
}

.language-button {
    position: fixed;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Download Screen Styles */
.download-screen {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #2a1a2e, #492e57);
    display: flex;
    flex-direction: column;
}

.download-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.download-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.back-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 16px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.download-header h2 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.download-info {
    margin-bottom: 40px;
}

.download-icon {
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
    opacity: 0.9;
}

.download-info h3 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.download-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
}

.download-progress {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
}

.download-button {
    background: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    color: #492e57;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a1a2e, #492e57);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.loading-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* UI Buttons */
.ui-button {
    position: fixed;
    background: white;
    border: none;
    border-radius: 50px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.ui-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.logo-button {
    top: 15px;
    left: 15px;
    background: #492e57;
}

.logo-image {
    width: 30px;
    height: 30px;
}

.language-button {
    top: 15px;
    right: 15px;
}

.language-flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ui-button {
        padding: 12px;
    }
    
    .logo-image {
        width: 25px;
        height: 25px;
    }
    
    .language-flag {
        width: 25px;
        height: 17px;
    }
}

@media (max-width: 480px) {
    .ui-button {
        padding: 10px;
    }
    
    .logo-button {
        top: 10px;
        left: 10px;
    }
    
    .language-button {
        top: 10px;
        right: 10px;
    }
}