/* Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* App Card Hover Effect */
.app-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* App Icon Animation */
.app-icon {
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

/* Button Hover Effect */
.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger Animation */
.app-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.app-card:nth-child(1) { animation-delay: 0.05s; }
.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.15s; }
.app-card:nth-child(4) { animation-delay: 0.2s; }
.app-card:nth-child(5) { animation-delay: 0.25s; }
.app-card:nth-child(6) { animation-delay: 0.3s; }
.app-card:nth-child(7) { animation-delay: 0.35s; }
.app-card:nth-child(8) { animation-delay: 0.4s; }
.app-card:nth-child(9) { animation-delay: 0.45s; }
.app-card:nth-child(10) { animation-delay: 0.5s; }
.app-card:nth-child(11) { animation-delay: 0.55s; }
.app-card:nth-child(12) { animation-delay: 0.6s; }
.app-card:nth-child(13) { animation-delay: 0.65s; }
.app-card:nth-child(14) { animation-delay: 0.7s; }
.app-card:nth-child(15) { animation-delay: 0.75s; }
.app-card:nth-child(16) { animation-delay: 0.8s; }
.app-card:nth-child(17) { animation-delay: 0.85s; }
.app-card:nth-child(18) { animation-delay: 0.9s; }
.app-card:nth-child(19) { animation-delay: 0.95s; }
.app-card:nth-child(20) { animation-delay: 1s; }
.app-card:nth-child(21) { animation-delay: 1.05s; }
.app-card:nth-child(22) { animation-delay: 1.1s; }

/* Badge Styles */
.date-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

/* HarmonyOS Badge */
.harmony-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.harmony-badge svg {
    flex-shrink: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.close-btn {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.info-item {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}

.download-btn-modal {
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn-modal:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Modal Scroll */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .close-btn {
        align-self: flex-start;
    }
    
    #modalTitle {
        font-size: 1.5rem;
    }
    
    .harmony-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .harmony-badge svg {
        width: 1rem;
        height: 1rem;
    }
}

