﻿@font-face {
    font-family: 'iran-yekan-700';
    src: url('/Theme/assets/fonts/persian/iran-yekan-700.eot') format('embedded-opentype'), url('/Theme/assets/fonts/persian/iran-yekan-700.ttf') format('truetype'), url('/Theme/assets/fonts/persian/iran-yekan-700.woff') format('woff'), url('/Theme/assets/fonts/persian/iran-yekan-700.woff2') format('woff2');
}

@font-face {
    font-family: 'iran-yekan-400';
    src: url('/Theme/assets/fonts/persian/iran-yekan-400.woff2') format('woff2'), url('/Theme/assets/fonts/persian/iran-yekan-400.eot') format('embedded-opentype'), url('/Theme/assets/fonts/persian/iran-yekan-400.ttf') format('truetype'), url('/Theme/assets/fonts/persian/iran-yekan-400.woff') format('woff');
}

@font-face {
    font-family: 'iran-yekan-500';
    src: url('/Theme/assets/fonts/persian/iran-yekan-500.eot') format('embedded-opentype'), url('/Theme/assets/fonts/persian/iran-yekan-500.ttf') format('truetype'), url('/Theme/assets/fonts/persian/iran-yekan-500.woff') format('woff'), url('/Theme/assets/fonts/persian/iran-yekan-500.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000;
    font-family: 'iran-yekan-400', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.main-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reels-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    position: relative;
    scroll-snap-type: y mandatory;
}

.reel-item {
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.reel-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

    .reel-preview::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.7) 100%);
    }

.play-btn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(74, 186, 100, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: transform 0.2s ease;
    box-shadow: 0 0 20px rgba(74, 186, 100, 0.5);
}

    .play-btn-center svg {
        width: 32px;
        height: 32px;
        fill: white;
        margin-right: 4px;
    }

.reel-preview:active .play-btn-center {
    transform: translate(-50%, -50%) scale(0.95);
}

.reel-caption {
    position: absolute;
    bottom: 160px;
    right: 16px;
    left: 80px;
    z-index: 1001;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

    .reel-caption h3 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
        font-family: 'iran-yekan-500';
    }

    .reel-caption p {
        font-size: 13px;
        opacity: 0.9;
        font-family: 'iran-yekan-400';
    }

.business-action {
    position: absolute;
    bottom: 85px;
    right: 16px;
    z-index: 1001;
}

.business-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(74, 186, 100, 0.5);
}

    .business-icon i {
        color: #fff !important;
    }

    .business-icon svg {
        width: 24px;
        height: 24px;
        stroke: #4ABA64;
        stroke-width: 1.8;
        fill: none;
    }

    .business-icon:active {
        transform: scale(0.92);
        background: #4ABA64;
    }

        .business-icon:active svg {
            stroke: white;
        }

.explorer-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 12px 16px;
    pointer-events: none;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    pointer-events: auto;
}

.search-box {
    flex: 1;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 12px 20px;
        background: rgba(30, 30, 35, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 30px;
        color: white;
        font-size: 15px;
        outline: none;
        transition: all 0.2s;
        font-family: 'iran-yekan-400';
    }

        .search-box input:focus {
            background: rgba(40, 40, 45, 0.95);
            border-color: #4ABA64;
        }

        .search-box input::placeholder {
            color: rgba(255,255,255,0.6);
        }

.live-results {
    position: absolute;
    top: 55px;
    right: 0;
    left: 0;
    background: #1a1a1e;
    border-radius: 20px;
    overflow: hidden;
    display: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.live-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #2a2a2e;
}

    .live-result-item:last-child {
        border-bottom: none;
    }

    .live-result-item:hover,
    .live-result-item:active {
        background: #2a2a2e;
    }

.live-result-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #2a2a2e;
}

.live-result-info {
    flex: 1;
}

.live-result-title {
    color: white;
    font-weight: 500;
    font-size: 14px;
    font-family: 'iran-yekan-500';
}

.live-result-cat {
    color: #888;
    font-size: 12px;
    margin-top: 3px;
    font-family: 'iran-yekan-400';
}

.nav-arrows-vertical {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.nav-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-arrow-btn {
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4ABA64;
    transition: all 0.2s;
}

    .nav-arrow-btn svg {
        width: 22px;
        height: 22px;
        stroke: #4ABA64;
        stroke-width: 2;
        fill: none;
        color: #fff;
    }

.nav-arrow span {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    color: white;
    font-family: 'iran-yekan-400';
    white-space: nowrap;
    border: 1px solid rgba(74, 186, 100, 0.4);
}

.nav-arrow:active .nav-arrow-btn {
    transform: scale(0.92);
    background: #4ABA64;
}

    .nav-arrow:active .nav-arrow-btn svg {
        stroke: white;
    }

.nav-arrow.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.down-arrow .nav-arrow-btn {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 186, 100, 0.7);
        border-color: #4ABA64;
    }

    50% {
        box-shadow: 0 0 0 12px rgba(74, 186, 100, 0);
        border-color: #6fd489;
    }
}

.loading-reel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2a2a2e;
    border-top-color: #4ABA64;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reels-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.marsbtn_nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #081319;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 8px 0;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
}

.marsbtn_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 10px;
    flex: 1;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

    .marsbtn_item i {
        font-size: 20px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }

    .marsbtn_item:hover {
        transform: translateY(-5px);
    }

        .marsbtn_item:hover i {
            color: #FFD700;
        }

.marsbtn_active {
    position: relative;
}

    .marsbtn_active::after {
        content: '';
        position: absolute;
        top: -8px;
        width: 30px;
        height: 3px;
        background-color: #4aba64;
        border-radius: 3px;
    }

    .marsbtn_active i {
        text-shadow: 0 0 10px #4aba64;
    }

@media screen and (max-width: 550px) {
    .marsbtn_nav {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .nav-arrows-vertical {
        right: 10px;
    }

    .nav-arrow-btn {
        width: 40px;
        height: 40px;
    }

        .nav-arrow-btn svg {
            width: 20px;
            height: 20px;
        }

    .nav-arrow span {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* افزایش فاصله از پایین برای جلوگیری از تداخل با نوار ناوبری */
    .reel-caption {
        bottom: 180px; /* افزایش از 140px به 160px */
        left: 70px; /* کمی جمع‌تر برای موبایل */
        right: 12px;
    }

        .reel-caption h3 {
            font-size: 14px; /* کمی کوچک‌تر برای موبایل */
        }

        .reel-caption p {
            font-size: 11px;
        }

    .business-action {
        bottom: 135px; /* افزایش از 70px به 90px */
    }

    .business-icon {
        width: 42px; /* کمی کوچک‌تر برای موبایل */
        height: 42px;
    }
}

/* برای گوشی‌های بسیار کوچک (مثل iPhone SE) */
@media screen and (max-width: 380px) {
    .reel-caption {
        bottom: 170px;
    }

    .business-action {
        bottom: 160px;
    }
}