/**
 * TOTO Peek Carousel 스타일
 */

/* 공통 스타일 */
.toto-peek-carousel,
.toto-peek-list {
    --primary-color: #6200ea;
    --secondary-color: #3700b3;
    --accent-color: #03dac6;
    --text-color: #ffffff;
    --background-color: #121212;
    --card-bg-color: #1e1e1e;
    --border-color: #2c2c2c;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    
}

.toto-peek-play-btn, .toto-peek-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* 아이콘과 텍스트 사이 간격 */
}

/* 헤더 스타일 */
.toto-peek-carousel-header,
.toto-peek-list-header {
    margin-bottom: 1.5rem;
}

.toto-peek-carousel-title,
.toto-peek-list-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.toto-peek-carousel-description,
.toto-peek-list-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

/* 카드 뷰 스타일 */
.toto-peek-carousel-container {
    position: relative;
    overflow: hidden;
}

/* --- Marquee Animation --- */
.marquee-container {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
    animation: marquee 15s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}



.toto-peek-review-button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.toto-peek-review-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* 리스트 뷰 스타일 */
.toto-peek-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toto-peek-list-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg-color);
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.toto-peek-list-logo {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 1rem;
}

.toto-peek-list-logo .toto-peek-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 150px;
    height: 150px;
}

/* 카드 뷰 로고가 컨테이너를 꽉 채우도록 수정 */
.toto-peek-card .toto-peek-card-logo .toto-peek-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toto-peek-list-logo .toto-peek-crypto-badge {
    top: -0.25rem;
    left: -0.25rem;
    transform: scale(0.8);
    transform-origin: top left;
}

.toto-peek-list-content {
    flex-grow: 1;
    padding-right: 1rem;
}

.toto-peek-list-header-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.toto-peek-list-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    margin-right: 0.75rem;
}

.toto-peek-list-promo {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.toto-peek-list-rating {
    display: flex;
    align-items: center;
}

.toto-peek-rating-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.toto-peek-star {
    width: 16px;
    height: 16px;
}

.toto-peek-star-filled {
    color: #fbbf24;
    fill: #fbbf24;
}

.toto-peek-star-half {
    color: #fbbf24;
    fill: #fbbf24;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.toto-peek-star-empty {
    color: rgba(255, 255, 255, 0.3);
}

.toto-peek-rating-value {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.toto-peek-list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    width: 120px;
}

/* 네비게이션 버튼 스타일 */
.toto-peek-carousel-prev,
.toto-peek-carousel-next {
    color: var(--text-color);
}

.toto-peek-carousel-prev:after,
.toto-peek-carousel-next:after {
    font-size: 1.5rem;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .toto-peek-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toto-peek-list-logo {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }
    
    .toto-peek-list-logo .toto-peek-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .toto-peek-list-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .toto-peek-list-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .toto-peek-list-actions a {
        flex: 1;
    }
}

/* 다크 모드 호환성 */
@media (prefers-color-scheme: dark) {
    .toto-peek-carousel,
    .toto-peek-list {
        --card-bg-color: #1e1e1e;
        --border-color: #2c2c2c;
    }
}

/* Swiper 커스텀 스타일 */
.toto-peek-carousel .swiper-slide {
    width: auto;
    height: auto;
}

.toto-peek-carousel .swiper-container-initialized .swiper-wrapper {
    overflow: visible;
}

.toto-peek-carousel .swiper-wrapper {
    padding: 1rem 0;
}

/* 슬라이드 간격 */
.toto-peek-carousel .swiper-slide {
    margin-right: 1rem;
}


