﻿/* Awards Scroller Styles */
.awards-scroller-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.awards-scroller-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.scroller-header {
    text-align: center;
    margin-bottom: 40px;
}

.scroller-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    position: relative;
}

    .scroller-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #f59e0b, #d97706);
        border-radius: 2px;
    }

.scroller-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 15px;
}

/* Awards Scroller */
.awards-scroller {
    position: relative;
    margin: 0 -20px 30px;
    overflow: hidden;
}

.scroller-track {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
}

    .scroller-track:active {
        cursor: grabbing;
    }

.award-photo {
    flex: 0 0 300px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

    .award-photo:nth-child(1) {
        animation-delay: 0.1s;
    }

    .award-photo:nth-child(2) {
        animation-delay: 0.2s;
    }

    .award-photo:nth-child(3) {
        animation-delay: 0.3s;
    }

    .award-photo:nth-child(4) {
        animation-delay: 0.4s;
    }

    .award-photo:nth-child(5) {
        animation-delay: 0.5s;
    }

    .award-photo:nth-child(6) {
        animation-delay: 0.6s;
    }

    .award-photo:nth-child(7) {
        animation-delay: 0.7s;
    }

    .award-photo:nth-child(8) {
        animation-delay: 0.8s;
    }

    .award-photo:nth-child(9) {
        animation-delay: 0.9s;
    }

    .award-photo:nth-child(10) {
        animation-delay: 1s;
    }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-container {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #fff;
}

.award-photo:hover .photo-container {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.award-photo:hover .photo-container img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.7) 100% );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.award-photo:hover .photo-overlay {
    opacity: 1;
}

.award-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.award-photo:hover .award-info {
    transform: translateY(0);
}

.award-year {
    display: inline-block;
    padding: 4px 12px;
    background: #f59e0b;
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.award-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicators */
.scroll-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .scroll-btn:hover {
        border-color: #f59e0b;
        background: #f59e0b;
        color: white;
        transform: scale(1.1);
    }

    .scroll-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

        .scroll-btn:disabled:hover {
            border-color: #e2e8f0;
            background: white;
            color: #64748b;
        }

.scroll-dots {
    display: flex;
    gap: 8px;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .scroll-dot.active {
        background: #f59e0b;
        transform: scale(1.2);
    }

    .scroll-dot:hover {
        background: #94a3b8;
    }

/* Auto-scroll Animation */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 5 - 20px * 5)); /* Adjust based on item count */
    }
}

.awards-scroller.auto-scroll .scroller-track {
    animation: autoScroll 30s linear infinite;
}

    .awards-scroller.auto-scroll .scroller-track:hover {
        animation-play-state: paused;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .awards-scroller-section {
        padding: 40px 0;
    }

    .scroller-title {
        font-size: 2rem;
    }

    .award-photo {
        flex: 0 0 280px;
    }

    .photo-container {
        height: 320px;
    }

    .scroll-indicators {
        gap: 15px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .scroller-title {
        font-size: 1.8rem;
    }

    .award-photo {
        flex: 0 0 260px;
    }

    .photo-container {
        height: 300px;
    }

    .award-name {
        font-size: 1rem;
    }

    .scroll-indicators {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .scroller-track {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        padding: 10px 20px;
        cursor: default;
    }

    .award-photo {
        scroll-snap-align: start;
    }

    .photo-overlay {
        opacity: 1;
    }

    .award-info {
        transform: translateY(0);
    }
}

/* Loading States */
.award-photo.loading .photo-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
