/**
 * ملف الأنماط الرئيسي - منصة QR
 * Main Stylesheet - QR Platform
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    direction: ltr;
}

.text-muteds {
    --bs-text-opacity: 1;
    color: rgba(255, 255, 255, 0.7) !important;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.qr-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.qr-card.vip {
    border: 2px solid #ffd700;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
}

.qr-card.vip::before {
    content: 'VIP';
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #2c3e50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.category-tag i {
    color: var(--primary-color);
    margin-left: 5px;
}

.category-tag:hover i {
    color: white;
}

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

.qr-image-container {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-card:hover .qr-overlay {
    opacity: 1;
}

.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stats-card:hover {
    transform: translateY(-3px);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.category-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.tag-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.tag-item:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
   /* position: relative; */
    overflow: hidden;
}

.search-box {
    background: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    width: 100%;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.qr-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
}

.form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-top: -30px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.required-star {
    color: var(--danger-color);
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.char-counter {
    font-size: 0.875rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .qr-image-container {
        height: 150px;
    }
    
    .qr-image {
        max-width: 100px;
        max-height: 100px;
    }
    
    .form-container {
        padding: 20px;
        margin: 0 15px 30px 15px;
    }
}
