﻿/* استایل‌های اختصاصی ماژول POS */

/* متغیرهای رنگ */
:root {
    --pos-primary: #f97316;
    --pos-primary-dark: #ea580c;
    --pos-primary-light: #fb923c;
    --pos-secondary: #64748b;
    --pos-success: #10b981;
    --pos-warning: #f59e0b;
    --pos-danger: #ef4444;
}

/* هدر */
.pos-hero-gradient {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #fb923c 100%);
}

.sinora-logo-pos {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(90deg, var(--pos-primary), var(--pos-primary-dark));
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.highlight-text-pos {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-button-pos {
    background: linear-gradient(90deg, var(--pos-primary), var(--pos-primary-dark));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .cta-button-pos:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
    }

.hover-glow {
    position: relative;
    z-index: 1;
}

    .hover-glow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, var(--pos-primary), var(--pos-primary-dark));
        z-index: -1;
        filter: blur(20px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hover-glow:hover::before {
        opacity: 0.7;
    }

/* انیمیشن شناور برای POS */
.animate-float-pos {
    animation: float-pos 3s ease-in-out infinite;
}

@keyframes float-pos {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* شبیه‌ساز صفحه POS */
.pos-screen-preview {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-family: monospace;
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pos-primary);
    margin-bottom: 15px;
}

.pos-logo {
    font-weight: bold;
    color: var(--pos-primary-light);
}

.pos-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pos-items {
    margin-bottom: 15px;
}

.pos-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pos-item-name {
    color: #cbd5e1;
}

.pos-item-price {
    color: #fbbf24;
    font-weight: bold;
}

.pos-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 2px solid var(--pos-primary);
    margin-top: 10px;
    font-size: 1.1rem;
}

.pos-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pos-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.pos-btn-primary {
    background: var(--pos-primary);
    color: white;
}

.pos-btn-secondary {
    background: #475569;
    color: white;
}

.pos-btn:hover {
    transform: translateY(-2px);
}

/* بخش ویژگی‌ها */
.section-title-pos {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

    .section-title-pos::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--pos-primary), var(--pos-primary-dark));
        border-radius: 2px;
    }

.feature-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.feature-category {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
}

    .feature-category:hover,
    .feature-category.active {
        background: linear-gradient(135deg, var(--pos-primary), var(--pos-primary-dark));
        color: white;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card-pos {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 1;
}

    .feature-card-pos:hover {
        transform: translateY(-5px);
        border-color: var(--pos-primary);
        box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
    }

.feature-icon-pos {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* بخش دمو آنلاین */
.highlight-text-gold {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--pos-primary);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pos-primary), var(--pos-primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* فرم دمو */
.demo-form-container {
    position: relative;
    z-index: 1;
}

.demo-glow-effect {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: glow-pulse 3s infinite ease-in-out;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.form-group-demo {
    position: relative;
}

.demo-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .demo-input:focus {
        outline: none;
        border-color: var(--pos-primary);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }

/* آپلود فایل */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f9fafb;
}

    .file-upload-area:hover {
        border-color: var(--pos-primary);
        background: #fef3c7;
    }

.file-upload-content {
    pointer-events: none;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* دکمه ارسال دمو */
.demo-submit-btn {
    background: linear-gradient(135deg, var(--pos-primary), var(--pos-primary-dark));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: slide-glow 2s infinite;
}

@keyframes slide-glow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.demo-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.3);
}

.submit-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.demo-submit-btn:hover .submit-icon {
    transform: translateY(-50%) translateX(-5px);
}

/* اطلاعات تماس */
.contact-info-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-category {
        text-align: center;
        justify-content: center;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

        .contact-info-item > div {
            margin-right: 0 !important;
            margin-top: 10px;
        }
}

.h_iframe-aparat_embed_frame {
    position: relative;
}

    .h_iframe-aparat_embed_frame .ratio {
        display: block;
        width: 100%;
        height: auto;
    }

    .h_iframe-aparat_embed_frame iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }