/* Download Page Styles */

/* Download Hero */
.download-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-hero h1 {
    color: white;
    margin-bottom: 20px;
    font-size: 3.5rem;
}

.download-hero p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

/* Platform Tabs */
.download-platforms {
    padding: 80px 0;
    background-color: var(--light-color);
}

.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: none;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.platform-tab i {
    font-size: 1.4rem;
}

.platform-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.platform-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Platform Content */
.platform-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.platform-content.active {
    display: block;
}

.platform-info {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

.platform-details {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
}

body.dark-mode .platform-details {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.platform-details h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-details h3 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.version {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.requirements {
    margin-bottom: 30px;
}

.requirements h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.requirements ul {
    list-style: none;
    padding: 0;
}

.requirements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray-color);
}

.requirements li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.features-list {
    margin-top: 30px;
}

.features-list h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--dark-color);
    font-weight: 500;
}

/* Download Box */
.download-box {
    position: sticky;
    top: 100px;
}

.download-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    padding: 40px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.download-card h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.download-card>p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.download-btn {
    background: white;
    color: var(--primary-color);
    padding: 20px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    display: block;
    text-decoration: none;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.download-btn small {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-color);
    margin-top: 5px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.download-options a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-options a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

.download-options a i {
    font-size: 1.2rem;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-badge i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.security-badge span {
    font-weight: 500;
    color: white;
}

/* Installation Guide */
.installation-guide {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-mode .installation-guide {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

body.dark-mode .step {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 25px;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Manual Configuration */
.manual-config {
    padding: 80px 0;
    background-color: var(--light-color);
}

.config-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.config-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.dark-mode .config-card {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.config-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.config-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.config-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.config-card p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

.config-card .btn-outline {
    padding: 12px 30px;
    font-weight: 600;
}

/* FAQ Section (Download Page Specific) */
.faq-section.compact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.dark-mode .faq-section.compact {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

body.dark-mode .faq-item {
    background: var(--gray-light);
    border-color: var(--gray-dark);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3:before {
    content: 'Q:';
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray-color);
    line-height: 1.7;
    padding-left: 30px;
    position: relative;
}

.faq-item p:before {
    content: 'A:';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* App Store Badges */
.app-store-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--dark-color);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.app-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #1e293b;
}

.app-badge i {
    font-size: 2.5rem;
}

.app-badge-content {
    text-align: left;
}

.app-badge-content span {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 2px;
}

.app-badge-content strong {
    font-size: 1.1rem;
    font-weight: 600;
}

/* System Requirements */
.system-requirements {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

body.dark-mode .system-requirements {
    background: var(--gray-dark);
}

.system-requirements h4 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .requirement-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.requirement-item:last-child {
    border-bottom: none;
}

.requirement-label {
    color: var(--dark-color);
    font-weight: 500;
}

.requirement-value {
    color: var(--gray-color);
}

/* Download Progress */
.download-progress {
    margin-top: 30px;
}

.progress-container {
    background: var(--gray-light);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

body.dark-mode .progress-container {
    background: var(--gray-dark);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .platform-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .download-box {
        position: static;
    }
}

@media (max-width: 992px) {
    .download-hero h1 {
        font-size: 2.8rem;
    }

    .platform-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-tab {
        min-width: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .config-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-hero {
        padding: 140px 0 60px;
    }

    .download-hero h1 {
        font-size: 2.2rem;
    }

    .download-hero p {
        font-size: 1.1rem;
    }

    .platform-details {
        padding: 25px;
    }

    .platform-details h3 {
        font-size: 1.6rem;
    }

    .download-card {
        padding: 30px;
    }

    .download-btn {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .app-badge {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .download-hero h1 {
        font-size: 1.8rem;
    }

    .platform-tab {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: auto;
    }

    .platform-details {
        padding: 20px;
    }

    .download-card {
        padding: 25px;
    }

    .download-btn {
        font-size: 1rem;
    }

    .step {
        padding: 25px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Platform tabs animation */
.platform-tab {
    animation: slideIn 0.3s ease;
}

.platform-tab:nth-child(1) {
    animation-delay: 0.1s;
}

.platform-tab:nth-child(2) {
    animation-delay: 0.2s;
}

.platform-tab:nth-child(3) {
    animation-delay: 0.3s;
}

.platform-tab:nth-child(4) {
    animation-delay: 0.4s;
}

.platform-tab:nth-child(5) {
    animation-delay: 0.5s;
}

/* Platform content animation */
.platform-content.active {
    animation: fadeIn 0.5s ease;
}

/* Step animations */
.step {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.step:nth-child(1) {
    animation-delay: 0.1s;
}

.step:nth-child(2) {
    animation-delay: 0.2s;
}

.step:nth-child(3) {
    animation-delay: 0.3s;
}

.step:nth-child(4) {
    animation-delay: 0.4s;
}

/* Download button hover effect */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.download-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(40, 40);
        opacity: 0;
    }
}

/* Loading animation for download */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.downloading {
    pointer-events: none;
    opacity: 0.7;
}

.downloading .fa-download {
    animation: spin 1s linear infinite;
}

/* Security badge animation */
.security-badge {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    }
}