/**
 * ArabCity - Professional SaaS Styles
 * تصميم عصري احترافي - Bento Grid
 */

:root {
    /* Brand Colors */
    --brand-red: #E53935;
    --brand-red-dark: #B71C1C;
    --brand-red-glow: rgba(229, 57, 53, 0.4);

    /* Backgrounds */
    --bg-main: #050505;
    --bg-card: #0F0F0F;
    --bg-card-hover: #161616;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #52525B;

    /* Borders */
    --border-subtle: #27272A;
    --border-highlight: #3F3F46;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 80px;

    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;

    /* Subtle Mesh Background */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(229, 57, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 30%);
}

.app-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    color: var(--brand-red);
    font-size: 1.5rem;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    text-align: center;
    padding: 4rem 0 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 57, 53, 0.1);
    color: var(--brand-red);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.text-gradient::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--brand-red);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.25);
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

/* =========================================
   Bento Grid
   ========================================= */
.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 1.5rem;
    margin-bottom: 4rem;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Sizes */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(180deg, var(--bg-card) 0%, #0a0a0a 100%);
}

.card-medium {
    grid-column: span 1;
}

.card-wide {
    grid-column: span 1;
    grid-row: span 1;
}

/* Card Content */
.card-content {
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-subtle);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Visuals for Large Card */
.card-visual {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
}

.visual-library {
    display: flex;
    gap: 10px;
    padding: 20px;
    justify-content: center;
    align-items: flex-end;
    opacity: 0.5;
}

.movie-poster {
    width: 100px;
    height: 150px;
    background: #333;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    overflow: hidden; 
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p1 {
    transform: rotate(-5deg) translateY(10px);
}

.p2 {
    transform: translateY(-10px);
    z-index: 2;
}

.p3 {
    transform: rotate(5deg) translateY(10px);
}

.bento-card:hover .p2 {
    transform: translateY(-20px) scale(1.05);
}

/* Status Badge in Wide Card */
.status-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.creator {
    color: var(--text-secondary);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.1rem;
}

.social-link:hover {
    color: var(--brand-red);
}

/* =========================================
   Toast
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

.toast {
    background: #18181B;
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .features-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .card-large {
        grid-column: span 2;
        min-height: 300px;
    }

    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .card-large,
    .card-medium,
    .card-wide {
        grid-column: span 1;
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
/* =========================================
   Developers Section
   ========================================= */
.developers-section {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.dev-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.dev-cards {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dev-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.dev-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.dev-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
}

.dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dev-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.dev-handle {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dev-icon {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.dev-card:hover .dev-icon {
    color: #1DA1F2; /* Twitter Blue */
}

/* Responsive */
@media (max-width: 600px) {
    .dev-cards {
        flex-direction: column;
        width: 100%;
    }
    
    .dev-card {
        width: 100%;
    }
}