/* 
============================================================
HORIZONTAL SCROLL SYSTEM - CSS
============================================================
Include this CSS file in your HTML:
<link rel="stylesheet" href="../assets/css/horizontal-scroll.css">
============================================================
*/

/* Horizontal Scrolling Container */
.scroll-wrapper {
    position: relative;
    margin-top: 2rem;
    padding: 0 2rem;
}

.scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Feature Cards for Scrolling */
.scroll-container .feature-card {
    flex: 0 0 350px;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #1a2744;
    min-height: 400px;
}

.scroll-container .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Navigation Arrows */
.scroll-wrapper .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #64748b;
}

.scroll-wrapper .nav-arrow:hover {
    border-color: #4c6ef5;
    background: #4c6ef5;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-wrapper .nav-arrow:disabled,
.scroll-wrapper .nav-arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.scroll-wrapper .nav-arrow.prev {
    left: -20px;
}

.scroll-wrapper .nav-arrow.next {
    right: -20px;
}

.scroll-wrapper .nav-arrow::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.scroll-wrapper .nav-arrow.prev::after {
    transform: rotate(-135deg);
    margin-left: 2px;
}

.scroll-wrapper .nav-arrow.next::after {
    transform: rotate(45deg);
    margin-right: 2px;
}

/* Pagination Dots */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.pagination-dot:hover {
    background: #94a3b8;
    transform: scale(1.1);
}

.pagination-dot.active {
    background: #4c6ef5;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.2);
}

.pagination-dot:focus {
    outline: 2px solid #4c6ef5;
    outline-offset: 2px;
}

/* Loading State */
.scroll-wrapper.loading .scroll-container {
    opacity: 0.6;
    pointer-events: none;
}

.scroll-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4c6ef5;
    border-radius: 50%;
    animation: scrollLoading 1s linear infinite;
    z-index: 100;
}

@keyframes scrollLoading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll behavior for container */
.scroll-container.smooth-scrolling {
    scroll-behavior: smooth;
}

/* Active dragging state */
.scroll-container.dragging {
    cursor: grabbing;
    user-select: none;
    scroll-behavior: auto;
}

.scroll-container.dragging * {
    pointer-events: none;
}

/* Card Content Styles (if not already defined elsewhere) */
.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: #0d192b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #1a2744;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.3rem 0;
    color: #1a2744;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
	text-align: left;
}

.feature-list li::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    min-width: 15px;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .scroll-container .feature-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .scroll-wrapper {
        padding: 0 1rem;
    }

    .scroll-container {
        gap: 1.5rem;
        padding: 1rem 0.5rem 2rem 0.5rem;
    }

    .scroll-container .feature-card {
        flex: 0 0 280px;
        min-height: 350px;
        padding: 1.5rem;
    }

    .scroll-wrapper .nav-arrow {
        display: none;
    }

    .pagination-container {
        margin-top: 1.5rem;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .scroll-container .feature-card {
        flex: 0 0 260px;
        min-height: 320px;
        padding: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card .feature-icon {
        font-size: 2rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .scroll-wrapper .nav-arrow {
        border-width: 3px;
        border-color: #000;
    }

    .pagination-dot {
        border: 2px solid #000;
    }

    .pagination-dot.active {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-container {
        scroll-behavior: auto;
    }

    .scroll-wrapper .nav-arrow,
    .pagination-dot,
    .feature-card {
        transition: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .scroll-container .feature-card {
        background: #1a1a1a;
        color: #e5e5e5;
        border-left-color: #4c6ef5;
    }

    .feature-card h3 {
        color: #f1f5f9;
    }

    .feature-card p,
    .feature-list li {
        color: #cbd5e0;
    }

    .scroll-wrapper .nav-arrow {
        background: #1a1a1a;
        border-color: #374151;
        color: #9ca3af;
    }

    .scroll-wrapper .nav-arrow:hover {
        background: #4c6ef5;
        border-color: #4c6ef5;
        color: white;
    }
}

/* Print styles */
@media print {
    .scroll-wrapper .nav-arrow,
    .pagination-container {
        display: none;
    }

    .scroll-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
        overflow: visible;
    }

    .scroll-container .feature-card {
        flex: none;
        break-inside: avoid;
    }
}