/* ===================================================
   منصة باحثون - قسم رحلة الطلب والتطبيق
   assets/css/app-showcase.css
   =================================================== */

.app-showcase-section {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* ─── Header ─── */
.app-showcase-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ─── Grid Layout ─── */
.app-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ─── Individual Step Row ─── */
.app-step-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Alternate row direction */
.app-step-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* ─── Text Content ─── */
.app-step-content {
    flex: 1;
    padding: 20px;
}

.step-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    font-size: 20px;
    font-weight: 900;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.app-step-content h3 {
    font-size: 28px;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 800;
}

.app-step-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ─── Mobile Mockup / Image Container ─── */
.app-step-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* The phone frame simulation */
.mobile-mockup {
    width: 280px;
    background: #ffffff;
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 
                0 0 0 10px var(--card-border) inset;
    position: relative;
    transition: transform 0.4s ease;
}

.mobile-mockup:hover {
    transform: translateY(-10px);
}

/* The actual screenshot */
.mobile-mockup img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    display: block;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Floating Elements to make it 3D and interactive */
.floating-badge {
    position: absolute;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-weight: 700;
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    border: 1px solid var(--card-border);
}

.floating-badge.right {
    right: -30px;
    top: 20%;
}

.floating-badge.left {
    left: -40px;
    bottom: 25%;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .app-step-row, .app-step-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .floating-badge.right { right: -10px; }
    .floating-badge.left { left: -10px; }
}

@media (max-width: 480px) {
    .mobile-mockup {
        width: 240px;
    }
    .app-step-content h3 {
        font-size: 24px;
    }
}

/* Dark Mode Adjustments */
body.dark-mode .mobile-mockup {
    background: #1e293b;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                0 0 0 10px #0f172a inset;
}

body.dark-mode .floating-badge {
    background: #1e293b;
    color: #60a5fa;
    border-color: rgba(255,255,255,0.05);
}
