body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    margin: 0;
    padding: 0;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: #161b22;
    padding: 5px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 20px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #c9d1d9;
}

.lang-btn:hover {
    background-color: #21262d;
    color: #f0f6fc;
}

.lang-btn.active {
    background-color: #1f6feb;
    color: white;
}

header {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    color: white;
    border-bottom: 1px solid #30363d;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(46, 160, 67, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #58a6ff 0%, #2ea043 50%, #ffa657 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
    display: inline-block;
    width: 100%;
}

header h1::before {
    content: "🥷";
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(88, 166, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

header h1::after {
    content: "⚡";
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 166, 87, 0.5));
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-60%) rotate(5deg);
    }
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.app-grid.single-app {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.app-grid.two-apps {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
}

.app-card {
    background: #161b22;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    border: 1px solid #30363d;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    border-color: #58a6ff;
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

[dir="rtl"] .app-header {
    flex-direction: row-reverse;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    padding: 8px;
    object-fit: contain;
    object-position: center;
    background-color: #21262d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #30363d;
}

.app-info {
    flex: 1;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #f0f6fc;
}

.app-version {
    font-size: 1.1rem;
    color: #8b949e;
    margin: 0;
}

.app-description {
    margin-bottom: 30px;
}

.features-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f0f6fc;
}

.app-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #c9d1d9;
    margin-bottom: 1em;
    padding-left: 20px;
    position: relative;
}

.app-description p::before {
    content: "•";
    color: #58a6ff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.app-description p:last-child {
    margin-bottom: 0;
}

[dir="rtl"] .app-description p {
    text-align: right;
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .app-description p::before {
    left: auto;
    right: 0;
}

.app-requirements {
    margin-bottom: 30px;
}

.requirements-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #f0f6fc;
}

.requirements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

[dir="rtl"] .requirements-list {
    flex-direction: row-reverse;
}

.requirement-tag {
    background-color: #21262d;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    color: #c9d1d9;
    font-weight: 500;
    border: 1px solid #30363d;
}

.app-download {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

[dir="rtl"] .app-download {
    flex-direction: row-reverse;
}

.btn-download {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #238636;
    color: white;
    border: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.4);
    background-color: #2ea043;
    color: white;
}

.btn-primary {
    background-color: #238636;
    border-color: #238636;
}

.btn-primary:hover {
    background-color: #2ea043;
    border-color: #2ea043;
}

footer {
    background-color: #0d1117;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

.spinner-border {
    color: #58a6ff !important;
}

@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .app-grid.single-app {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
    
    .app-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    [dir="rtl"] .language-switcher {
        right: auto;
        left: 10px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 2.5rem;
        margin: 0;
    }
    
    header h1::before {
        left: -50px;
        font-size: 2.5rem;
    }
    
    header h1::after {
        right: -50px;
        font-size: 2.5rem;
    }
    
    .app-grid,
    .app-grid.two-apps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .app-card {
        padding: 25px;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
    }
    
    [dir="rtl"] .app-header {
        flex-direction: column;
    }
    
    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        padding: 6px;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .features-title,
    .requirements-title {
        font-size: 1.1rem;
    }
    
    .app-version {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .app-description p {
        font-size: 1rem;
        padding-left: 16px;
    }
    
    [dir="rtl"] .app-description p {
        padding-left: 0;
        padding-right: 16px;
    }
    
    .requirements-list {
        justify-content: center;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-card {
    animation: fadeIn 0.5s ease-out;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

@media print {
    .language-switcher {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .app-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background-color: white;
    }
    
    .app-title,
    .requirements-title {
        color: black;
    }
    
    .app-description p,
    .app-version,
    .requirement-tag {
        color: #333;
    }
} 