/* استایل شاهکار اسلایدر - مینیمال و ریسپانسیو */
.slider-section {
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 45vh;
    max-height: 400px;
    min-height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 10s ease-out;
}

.slide.active .slide-image {
    transform: scale(1.05);
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.45) 70%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
    transform: translateY(15px);
    transition: transform 0.7s ease 0.2s, opacity 0.7s ease 0.2s;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60%;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

/* عنوان مینیمال و شیک */
.slide-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.7rem 1.3rem;
    border-radius: 8px;
    display: inline-block;
    width: auto;
    max-width: 90%;
}

/* توضیحات مینیمال و خوانا */
.slide-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.95;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.9rem 1.3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

/* دکمه مینیمال و شیک - همیشه زیر متن */
.slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin-top: auto;
}

.slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.slide-button:hover::before {
    left: 100%;
}

.slide-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* دکمه‌های ناوبری مینیمال */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.slider-nav.prev {
    right: 15px;
}

.slider-nav.next {
    left: 15px;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* نقاط راهنمای مینیمال */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
}

.slider-dot.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.slider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.8);
}

/* انیمیشن‌های ویژه */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.slide-content .slide-title {
    animation-delay: 0.2s;
    opacity: 0;
}

.slide-content .slide-description {
    animation-delay: 0.3s;
    opacity: 0;
}

.slide-content .slide-button {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ریسپانسیو - تبلت */
@media (max-width: 1024px) {
    .slider-container {
        height: 40vh;
        max-height: 380px;
        border-radius: 8px;
    }
    
    .slide-title {
        font-size: 1.7rem;
        padding: 0.6rem 1.1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
        padding: 0.8rem 1.1rem;
        margin-bottom: 1.2rem;
        max-width: 500px;
    }
    
    .slide-button {
        padding: 0.6rem 1.6rem;
        font-size: 0.85rem;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 768px) {
    .slider-section {
        margin: 0.8rem auto;
    }
    
    .slider-container {
        height: 35vh;
        max-height: 320px;
        min-height: 280px;
        border-radius: 6px;
    }
    
    .slide-content {
        padding: 0 1rem;
        min-height: 70%;
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        padding: 0.5rem 1rem;
        max-width: 95%;
    }
    
    .slide-description {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
        margin-bottom: 1rem;
        max-width: 95%;
        line-height: 1.4;
    }
    
    .slide-button {
        padding: 0.5rem 1.4rem;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        right: 10px;
    }
    
    .slider-nav.next {
        left: 10px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
}

/* ریسپانسیو - موبایل کوچک */
@media (max-width: 480px) {
    .slider-container {
        height: 30vh;
        max-height: 280px;
        min-height: 250px;
        border-radius: 4px;
    }
    
    .slide-content {
        padding: 0 0.8rem;
        min-height: 75%;
    }
    
    .slide-title {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .slide-description {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .slide-button {
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }
    
    .slider-nav {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .slider-nav.prev {
        right: 8px;
    }
    
    .slider-nav.next {
        left: 8px;
    }
    
    .slider-dots {
        bottom: 8px;
    }
    
    .slider-dot {
        width: 6px;
        height: 6px;
    }
}

/* بهبود عملکرد لمسی در موبایل */
@media (hover: none) {
    .slider-nav {
        opacity: 0.7;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slide-button:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.25);
    }
}

/* حالت لنداسکیپ موبایل */
@media (max-height: 500px) and (orientation: landscape) {
    .slider-container {
        height: 60vh;
        min-height: 250px;
    }
    
    .slide-content {
        min-height: 50%;
    }
    
    .slide-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .slide-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .slide-button {
        padding: 0.3rem 1rem;
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }
}