/**
 * iOS Download Page Styles
 * TestFlight 下載頁面專用樣式
 * @version 1.0.0
 */

/* iOS Page Background */
.ios-page {
    background: linear-gradient(160deg, #0B1426 0%, #0F1A30 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* iOS Container */
.ios-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: none;
}

/* iOS Header */
.ios-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 20px;
    border-bottom: none;
    margin-bottom: 0;
}

.ios-lang-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ios-lang-select:hover,
.ios-lang-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
}

.ios-lang-select option {
    background: #333;
    color: white;
}

/* iOS App Info */
.ios-app-info {
    text-align: center;
    padding: 30px 0 40px;
}

.ios-app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ios-app-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* iOS Step Card */
.ios-step-card {
    background: #141C2E;
    border: 1px solid #1F2A3F;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.ios-step-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4A90D9 0%, #2E6EB5 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    position: absolute;
    top: -12px;
    left: 20px;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.35);
}

.ios-step-content {
    padding-top: 8px;
}

.ios-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #E8ECF3;
    margin: 0 0 8px;
    line-height: 1.4;
}

.ios-step-desc {
    font-size: 14px;
    color: #8A93A6;
    margin: 0 0 20px;
}

/* iOS Buttons */
.ios-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ios-btn-testflight {
    background: transparent;
    color: #6BA6E2;
    border-color: #4A90D9;
}

.ios-btn-testflight:hover {
    background: #4A90D9;
    color: white;
}

.ios-btn-install {
    background: linear-gradient(135deg, var(--gradient-start, #4A90D9) 0%, var(--gradient-mid, #2E6EB5) 50%, var(--gradient-end, #1E5392) 100%);
    color: white;
    border-color: transparent;
}

.ios-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.45);
}

.ios-btn-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ios-btn-app-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
}

/* iOS Warning */
.ios-warning {
    font-size: 13px;
    color: #ff6b6b;
    margin: 16px 0 0;
    text-align: center;
    line-height: 1.4;
}

/* Android Link */
.ios-android-link {
    text-align: center;
    margin: 24px 0;
}

.ios-android-link a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s;
}

.ios-android-link a:hover {
    color: white;
}

/* iOS Footer */
.ios-footer {
    margin-top: auto;
    padding: 30px 0 20px;
    text-align: center;
    border-top: none;
}

.ios-footer .copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .ios-container {
        padding: 16px;
    }

    .ios-app-icon {
        width: 80px;
        height: 80px;
    }

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

    .ios-step-card {
        padding: 20px;
    }

    .ios-step-title {
        font-size: 15px;
    }

    .ios-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ios-step-card {
        background: #141C2E;
    }

    .ios-step-title {
        color: #E8ECF3;
    }

    .ios-step-desc {
        color: #8A93A6;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ios-step-card {
    animation: fadeInUp 0.5s ease forwards;
}

.ios-step-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ios-step-card:nth-child(3) {
    animation-delay: 0.2s;
}
