/* ================================ */
/* Erdigo Product Page - Shared     */
/* ================================ */

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    user-select: none;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
}

.carousel-caption {
    width: 100%;
    padding: 18px 24px;
    background: var(--card-bg);
    text-align: center;
}

.carousel-caption h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.carousel-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    z-index: 10;
    line-height: 1;
}

.carousel-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover:not(.active) {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Counter */
.carousel-counter {
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* App Store Hero Button (large, for product pages) */
.app-store-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
}

.app-store-btn-lg img {
    height: 48px;
    width: auto;
    border-radius: 10px;
}

.app-store-btn-lg:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Media Gallery */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.media-gallery-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.media-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124, 58, 237, 0.2);
}

.media-gallery-content {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #1a1a2e;
}

.media-gallery-content img,
.media-gallery-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-gallery-info {
    padding: 18px 20px;
}

.media-gallery-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.media-gallery-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Free badge */
.free-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Platform pills */
.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 768px) {
    .screenshot-carousel { margin: 0 -10px; }
    .carousel-slide img { max-height: 360px; }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-btn svg { width: 16px; height: 16px; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .carousel-caption { padding: 14px 16px; }
    .app-store-btn-lg img { height: 40px; }
    .media-gallery-grid { grid-template-columns: 1fr; }
    .media-gallery-content { height: 200px; }
}

@media (max-width: 480px) {
    .carousel-slide img { max-height: 260px; }
    .carousel-dots { gap: 6px; }
    .carousel-dot { width: 8px; height: 8px; }
    .app-store-btn-lg img { height: 36px; }
    .ms-store-btn-lg { height: 36px; padding: 0 16px 0 6px; font-size: 0.85rem; }
    .ms-store-btn-lg img { width: 24px; height: 24px; }
}

/* Microsoft Store 배지 버튼(대형)
   — App Store 배지(img height 48px)와 세로 높이를 정확히 맞춰 나란히 정렬되도록 함 */
.ms-store-btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px 0 9px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ms-store-btn-lg img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: contain;
}

.ms-store-btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #222244 0%, #1a2a4e 100%);
}

/* Windows 전용 기능 표시 배지(platform-pill 계열 스타일 유지) */
.win-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(0, 120, 212, 0.10);
    border: 1px solid rgba(0, 120, 212, 0.22);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0a6ebd;
    vertical-align: middle;
}

.win-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.feature-card .win-badge,
.usage-step-card .win-badge {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .ms-store-btn-lg { height: 40px; padding: 0 18px 0 7px; font-size: 0.88rem; }
    .ms-store-btn-lg img { width: 27px; height: 27px; }
}
