/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    direction: rtl;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    padding: 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4f46e5;
    text-align: center;
}

/* Hero Section */
.hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main {
    padding: 0 0 40px 0;
}

/* Card Component */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1f2937;
    text-align: center;
}

/* Config Section */
.config-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.config-link-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.config-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: #f9fafb;
    color: #374151;
    direction: ltr;
    text-align: left;
}

.copy-btn {
    padding: 15px 25px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #059669;
}

.copy-btn:active {
    transform: scale(0.95);
}

.qr-section {
    text-align: center;
}

.qr-code {
    max-width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-text {
    margin-top: 15px;
    color: #6b7280;
    font-weight: 500;
}

/* App Categories */
.app-category {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.app-category:hover {
    transform: translateY(-2px);
}

.category-toggle {
    width: 100%;
    padding: 25px 30px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.category-toggle:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.category-icon {
    font-size: 1.5rem;
    margin-left: 15px;
}

.category-name {
    flex: 1;
    text-align: right;
}

.toggle-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.category-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.category-content.active {
    max-height: 1000px;
    padding: 20px 30px 30px;
}

/* App Items */
.app-item {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.app-item:last-child {
    margin-bottom: 0;
}

.app-info {
    margin-bottom: 20px;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.app-description {
    color: #6b7280;
    line-height: 1.6;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Download button styling */
.download-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* App Store button styling - distinctive blue gradient */
.download-btn[href*="apps.apple.com"] {
    background: linear-gradient(135deg, #007AFF, #0056b3);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.download-btn[href*="apps.apple.com"]:hover {
    background: linear-gradient(135deg, #0056b3, #007AFF);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.video-toggle {
    padding: 10px 20px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.video-toggle:hover {
    background: #4f46e5;
}

.video-container {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tutorial-video {
    width: 100%;
    height: auto;
    max-height: 400px;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer-text {
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .config-link-container {
        flex-direction: column;
    }
    
    .config-input {
        font-size: 12px;
    }
    
    .category-toggle {
        padding: 20px;
        font-size: 1rem;
    }
    
    .app-item {
        padding: 20px;
    }
    
    .app-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-btn,
    .video-toggle {
        align-self: stretch;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 20px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-toggle {
        padding: 15px;
    }
    
    .app-item {
        padding: 15px;
    }
    
    .card {
        padding: 15px;
    }
}

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

.app-item {
    animation: fadeIn 0.6s ease forwards;
}

/* Success animation for copy button */
.copy-btn.success {
    background: #22c55e !important;
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* RTL Adjustments */
[dir="rtl"] .config-input {
    text-align: right;
    direction: rtl;
}

/* Persian font optimization */
body {
    font-family: 'Segoe UI', 'Vazir', 'Tahoma', sans-serif;
} 