﻿/* ==========================================================================
   tezway Downloads Page Styles
   ========================================================================== */

.downloads-hero-shell {
    position: relative;
    padding: 56px 0 52px;
    background: linear-gradient(135deg, #131c31 0%, #1a2744 50%, #111a2e 100%);
    border-radius: 12px;
    margin: 0 0 40px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(18, 26, 46, 0.16);
}

.downloads-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.downloads-hero-bg::before {
    content: " \;
 position: absolute;
 inset: 0;
 background-image:
 linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
 linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
 background-size: 48px 48px;
 mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
 -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

.downloads-glow {
 position: absolute;
 border-radius: 50%;
 filter: blur(80px);
 pointer-events: none;
}

.downloads-glow--primary {
 width: 380px;
 height: 380px;
 background: radial-gradient(circle, rgba(66, 48, 211, 0.42) 0%, transparent 70%);
 top: -120px;
 right: -40px;
}

.downloads-glow--accent {
 width: 280px;
 height: 280px;
 background: radial-gradient(circle, rgba(245, 104, 61, 0.22) 0%, transparent 70%);
 bottom: -80px;
 left: 20px;
}

.downloads-hero-content {
 position: relative;
 z-index: 2;
 text-align: center;
 max-width: 780px;
 margin: 0 auto;
 padding: 0 15px;
}

.downloads-pill {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 6px 16px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.08);
 border: 1px solid rgba(255, 255, 255, 0.14);
 backdrop-filter: blur(10px);
 font-size: 13px;
 font-weight: 600;
 color: #cbd5e1;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 margin-bottom: 18px;
}

.downloads-pill i {
 color: #818cf8;
 font-size: 14px;
}

.downloads-hero-title {
 font-size: clamp(28px, 3.4vw, 44px);
 font-weight: 800;
 line-height: 1.18;
 color: #ffffff;
 margin: 0 0 14px;
 letter-spacing: -0.02em;
}

.downloads-hero-subtitle {
 font-size: clamp(14px, 1.4vw, 17px);
 line-height: 1.6;
 color: #cbd5e1;
 max-width: 660px;
 margin: 0 auto 20px;
}

.downloads-breadcrumb {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 font-size: 13px;
 color: #94a3b8;
}

.downloads-breadcrumb a {
 color: #94a3b8;
 text-decoration: none;
 transition: color 0.2s ease;
}

.downloads-breadcrumb a:hover {
 color: #ffffff;
}

.downloads-breadcrumb i {
 font-size: 10px;
 color: #64748b;
}

.downloads-breadcrumb span {
 color: #e2e8f0;
 font-weight: 500;
}

/* ── Main Downloads Container ── */
.downloads-main-wrap {
 padding: 0 0 80px;
}

.downloads-tabs-wrap {
 display: flex;
 justify-content: center;
 margin-bottom: 34px;
}

.downloads-tabs {
 display: inline-flex;
 gap: 8px;
 padding: 6px;
 background: #f1f4f9;
 border: 1px solid rgba(36, 48, 78, 0.08);
 border-radius: 999px;
 box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.downloads-tab {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 padding: 10px 24px;
 border: 0;
 border-radius: 999px;
 background: transparent;
 color: #4b5563;
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition: all 0.24s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.downloads-tab i {
 font-size: 16px;
}

.downloads-tab:hover:not(.is-active) {
 color: #1f2937;
 background: rgba(255, 255, 255, 0.6);
}

.downloads-tab.is-active {
 background: #4230d3;
 color: #ffffff;
 box-shadow: 0 6px 18px rgba(66, 48, 211, 0.32);
}

.downloads-panel {
 display: none;
 animation: fadeInPanel 0.3s ease;
}

.downloads-panel.is-active {
 display: block;
}

@keyframes fadeInPanel {
 from {
 opacity: 0;
 transform: translateY(8px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

/* ── Download Cards Grid ── */
.downloads-grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 24px;
}

.download-card {
 display: flex;
 flex-direction: column;
 background: #ffffff;
 border: 1px solid #e5e7eb;
 border-radius: 16px;
 padding: 28px;
 box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
 transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
 position: relative;
 overflow: hidden;
}

.download-card::before {
 content: \\;
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 height: 3px;
 background: linear-gradient(90deg, #4230d3 0%, #7f35a4 50%, #f7693c 100%);
 opacity: 0;
 transition: opacity 0.25s ease;
}

.download-card:hover {
 transform: translateY(-4px);
 border-color: #cbd5e1;
 box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.download-card:hover::before {
 opacity: 1;
}

.download-card__header {
 display: flex;
 align-items: center;
 gap: 18px;
 margin-bottom: 16px;
}

.download-card__icon {
 width: 56px;
 height: 56px;
 border-radius: 14px;
 display: grid;
 place-items: center;
 font-size: 26px;
 flex-shrink: 0;
 background: #f1f4fb;
 color: #4230d3;
 transition: transform 0.25s ease;
}

.download-card:hover .download-card__icon {
 transform: scale(1.06);
}

.download-card--windows .download-card__icon {
 background: rgba(0, 120, 212, 0.1);
 color: #0078d4;
}

.download-card--macos .download-card__icon {
 background: rgba(30, 41, 59, 0.08);
 color: #1e293b;
}

.download-card--android .download-card__icon {
 background: rgba(34, 197, 94, 0.12);
 color: #16a34a;
}

.download-card--ios .download-card__icon {
 background: rgba(99, 102, 241, 0.1);
 color: #4f46e5;
}

.download-card__platform {
 display: inline-block;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.06em;
 text-transform: uppercase;
 color: #6366f1;
 margin-bottom: 2px;
}

.download-card--windows .download-card__platform { color: #0078d4; }
.download-card--macos .download-card__platform { color: #475569; }
.download-card--android .download-card__platform { color: #16a34a; }
.download-card--ios .download-card__platform { color: #4f46e5; }

.download-card__title {
 font-size: 20px;
 font-weight: 700;
 color: #1e293b;
 margin: 0;
 line-height: 1.3;
}

.download-card__body {
 flex: 1;
 margin-bottom: 20px;
}

.download-card__desc {
 font-size: 14px;
 line-height: 1.6;
 color: #64748b;
 margin: 0;
}

.download-card__footer {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 14px;
 padding-top: 18px;
 border-top: 1px solid #f1f5f9;
}

.download-card__meta {
 display: flex;
 align-items: center;
 gap: 8px;
 flex-wrap: wrap;
}

.download-chip {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 4px 10px;
 border-radius: 6px;
 background: #f8fafc;
 border: 1px solid #e2e8f0;
 font-size: 12px;
 font-weight: 600;
 color: #475569;
}

.download-chip i {
 font-size: 11px;
 color: #94a3b8;
}

.download-card__action-btn {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 10px 20px;
 border-radius: 8px;
 background: #4230d3;
 color: #ffffff;
 font-size: 14px;
 font-weight: 600;
 text-decoration: none;
 border: 1px solid transparent;
 transition: all 0.22s ease;
 white-space: nowrap;
 box-shadow: 0 4px 12px rgba(66, 48, 211, 0.22);
}

.download-card__action-btn:hover {
 background: #3625b8;
 color: #ffffff;
 transform: translateY(-1px);
 box-shadow: 0 6px 18px rgba(66, 48, 211, 0.32);
}

.download-card__action-btn i {
 font-size: 14px;
 transition: transform 0.2s ease;
}

.download-card__action-btn:hover i {
 transform: translateY(2px);
}

.downloads-empty {
 text-align: center;
 padding: 60px 20px;
 background: #ffffff;
 border-radius: 16px;
 border: 1px dashed #cbd5e1;
}

.downloads-empty i {
 font-size: 48px;
 color: #94a3b8;
 margin-bottom: 16px;
}

.downloads-empty h2 {
 font-size: 22px;
 color: #1e293b;
 margin-bottom: 8px;
}

.downloads-empty p {
 color: #64748b;
 font-size: 15px;
 margin: 0;
}

/* Floating Action Button (FAB) for downloads popup */
.download-fab {
 position: fixed;
 bottom: 28px;
 right: 28px;
 z-index: 998;
}

.download-fab__toggle {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 padding: 12px 22px;
 border-radius: 999px;
 background: linear-gradient(135deg, #4230d3 0%, #6366f1 100%);
 color: #ffffff;
 border: 0;
 box-shadow: 0 10px 25px rgba(66, 48, 211, 0.35);
 font-size: 14px;
 font-weight: 600;
 cursor: pointer;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-fab__toggle:hover {
 transform: translateY(-2px);
 box-shadow: 0 14px 30px rgba(66, 48, 211, 0.42);
}

.download-fab__panel {
 position: absolute;
 bottom: 60px;
 right: 0;
 width: 320px;
 background: #ffffff;
 border-radius: 14px;
 padding: 20px;
 box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
 border: 1px solid #e2e8f0;
}

.download-fab__panel-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 14px;
}

.download-fab__panel-header h3 {
 font-size: 16px;
 font-weight: 700;
 margin: 0;
 color: #1e293b;
}

.download-fab__panel-close {
 border: 0;
 background: transparent;
 font-size: 16px;
 color: #64748b;
 cursor: pointer;
}

.download-fab__list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 gap: 8px;
}

.download-fab__list a {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 12px;
 border-radius: 8px;
 background: #f8fafc;
 color: #1e293b;
 text-decoration: none;
 font-size: 13px;
 font-weight: 600;
 transition: background 0.18s ease;
}

.download-fab__list a:hover {
 background: #f1f5f9;
 color: #4230d3;
}

/* Responsive adjustments */
@media (max-width: 900px) {
 .downloads-grid {
 grid-template-columns: 1fr;
 }

 .downloads-hero-shell {
 padding: 42px 0 38px;
 margin-bottom: 28px;
 }
}

@media (max-width: 600px) {
 .download-card {
 padding: 20px;
 }

 .download-card__footer {
 flex-direction: column;
 align-items: stretch;
 }

 .download-card__action-btn {
 justify-content: center;
 }
}