/* Support Page Specific Styles */

/* Support Header Section */
.support-header {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-accent) 100%);
    padding: 11rem 0 4rem;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.header-content h1 i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    font-weight: 500;
    color: var(--text-primary);
}

.trust-item i {
    color: var(--success-color);
    font-size: 1.125rem;
}

/* Instructions Section */
.instructions {
    padding: 10rem 0 4rem;
    background: var(--background-primary);
}

.instruction-card {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.instruction-card h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.instruction-card h2 i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.steps {
    display: grid;
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Downloads Section */
.downloads {
    padding: 4rem 0;
    background: var(--background-secondary);
}

.loading-container {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.download-categories {
    display: grid;
    gap: 3rem;
}

.download-category {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.platform-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-left: auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-item {
    background: var(--background-accent);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.download-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.download-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.download-size {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.download-details {
    margin-bottom: 1.5rem;
}

.download-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.download-hash {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-light);
    word-break: break-all;
    background: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

.download-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.download-button i {
    margin-right: 0.5rem;
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Error State */
.error-container {
    text-align: center;
    padding: 4rem 0;
}

.error-content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 0 auto;
}

.error-content i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Support Contact Section */
.support-contact {
    padding: 4rem 0;
    background: var(--background-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Recommended Download Section */
.recommended-download-section {
    margin: 3rem 0;
}

.recommended-download-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    margin: 0 auto;
}

.recommended-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recommended-header i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.recommended-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recommended-text p {
    opacity: 0.9;
    margin: 0;
}

.recommended-download-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.download-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.download-info p {
    opacity: 0.8;
    margin: 0;
    font-size: 0.875rem;
}

.download-button-recommended {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-button-recommended:hover {
    background: var(--background-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.recommended-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.recommended-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.recommended-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Platform Highlighting */
.download-category.detected-platform {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    position: relative;
}

.download-category.detected-platform::before {
    content: "Your System";
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.download-category.detected-platform .category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    margin: -2rem -2rem 2rem -2rem;
    padding: 1.5rem 2rem;
    border-radius: 1rem 1rem 0 0;
}

.download-category.detected-platform .category-header i,
.download-category.detected-platform .category-header h3,
.download-category.detected-platform .platform-note {
    color: white;
}

/* Version Info */
#version-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.version-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Mobile Platform Specific Styles */
.mobile-note {
    background: var(--background-accent);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.app-store-link {
    display: inline-block;
    margin: 0.5rem;
}

.app-store-link img {
    height: 40px;
    border-radius: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .support-header {
        padding: 6rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .trust-indicators {
        gap: 1rem;
    }
    
    .trust-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .instruction-card {
        padding: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .download-category {
        padding: 1.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .platform-note {
        margin-left: 0;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads,
    .instructions,
    .support-contact {
        padding: 3rem 0;
    }
    
    .instructions {
        padding: 8rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
    }
    
    .instruction-card {
        padding: 1.5rem;
    }
    
    .instruction-card h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    /* Recommended Download Mobile */
    .recommended-download-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .recommended-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .recommended-header i {
        font-size: 2rem;
    }
    
    .recommended-download-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .download-button-recommended {
        width: 100%;
        justify-content: center;
    }
    
    .recommended-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .recommended-actions .btn-small {
        width: 100%;
    }
    
    .download-category {
        padding: 1rem;
    }
    
    .download-item {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* Animation for download items loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-item {
    animation: fadeInUp 0.5s ease-out;
}

/* Special styling for different file types */
.download-item[data-type="exe"] .download-title::before {
    content: "🖥️ ";
}

.download-item[data-type="msi"] .download-title::before {
    content: "📦 ";
}

.download-item[data-type="dmg"] .download-title::before {
    content: "🍎 ";
}

.download-item[data-type="deb"] .download-title::before {
    content: "🐧 ";
}

.download-item[data-type="rpm"] .download-title::before {
    content: "🔴 ";
}

.download-item[data-type="appimage"] .download-title::before {
    content: "📱 ";
}

.download-item[data-type="apk"] .download-title::before {
    content: "🤖 ";
}
