/* Blyze.studio - الرئيسية */

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

:root {
    --primary-color: #d946ef;
    --primary-dark: #c026d3;
    --secondary-color: #a855f7;
    --tertiary-color: #e879f9;
    --dark-bg: #1a0b2e;
    --darker-bg: #0f0518;
    --card-bg: #2d1b4e;
    --text-primary: #f5d0fe;
    --text-secondary: #d8b4fe;
    --accent: #f0abfc;
    --success: #10b981;
    --danger: #ef4444;
    --whatsapp: #25d366;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 70, 239, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn.active {
    color: var(--secondary-color);
}

/* User Info Mobile */
.user-info-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(217, 70, 239, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(217, 70, 239, 0.3);
    margin-bottom: 1rem;
}

.user-info-mobile i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-info-mobile span {
    color: var(--text-primary);
    font-weight: 600;
}

.auth-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.auth-btn.login {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-btn.login:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.auth-btn.register {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.auth-btn.register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(217, 70, 239, 0.2);
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(217, 70, 239, 0.4);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    /* منع تحديد الصورة */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* منع السحب */
    pointer-events: none;
}

/* تحذير حقوق النشر */
.gallery-warning {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 5, 24, 0.95), transparent);
    padding: 2rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-warning i {
    font-size: 1.1rem;
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gallery-item-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.view-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

/* Footer */
footer {
    background: var(--dark-bg);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    text-decoration: none;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 50px rgba(37, 211, 102, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Header */
    header {
        padding: 0.8rem 1rem;
        height: 60px;
    }

    .header-content {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        z-index: 10;
    }

    .logo-section {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .logo-text {
        font-size: 1.2rem;
        white-space: nowrap;
    }

    .auth-buttons {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 998;
    }

    .auth-buttons.active {
        left: 0;
    }

    .auth-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    /* Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 997;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-warning {
        font-size: 0.75rem;
        padding: 1.5rem 1rem 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--card-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Image Protection Overlay */
.image-protection {
    position: relative;
}

.image-protection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
