/* ================================================
   랜딩 페이지 카드 컴포넌트 테마 시스템 (v3.0)
   SellerCardGrid, ProductGrid 컴포넌트용
   ================================================ */

/* ================================================
   기본 구조 CSS (모든 테마 공통)
   ================================================ */

.landing-component-wrapper {
    width: 100%;
    padding: 0;
}

.landing-seller-card,
.landing-product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* 카드 이미지 래퍼 */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.landing-seller-card:hover .card-img-wrapper img,
.landing-product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* 이미지 플레이스홀더 */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
}

/* 할인 배지 */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

/* 가격 섹션 */
.price-section {
    padding: 8px 0;
}

/* ================================================
   MINIMAL 테마 (기본값)
   깔끔하고 최소한의 디자인
   ================================================ */

.landing-seller-card--minimal,
.landing-product-card--minimal {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-seller-card--minimal:hover,
.landing-product-card--minimal:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.landing-seller-card--minimal .card-body,
.landing-product-card--minimal .card-body {
    background: white;
    color: #333;
}

.landing-seller-card--minimal .card-footer,
.landing-product-card--minimal .card-footer {
    background: white;
}

/* ================================================
   GRADIENT 테마
   화려한 그라데이션 배경
   ================================================ */

.landing-seller-card--gradient,
.landing-product-card--gradient {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-seller-card--gradient:hover,
.landing-product-card--gradient:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.landing-seller-card--gradient .card-body,
.landing-product-card--gradient .card-body {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
}

.landing-seller-card--gradient .card-title,
.landing-product-card--gradient .card-title {
    color: white;
    font-weight: 600;
}

.landing-seller-card--gradient .card-text,
.landing-product-card--gradient .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.landing-seller-card--gradient .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.landing-seller-card--gradient .card-footer,
.landing-product-card--gradient .card-footer {
    background: rgba(255, 255, 255, 0.1);
}

.landing-seller-card--gradient .btn-primary,
.landing-product-card--gradient .btn-primary {
    background: white;
    color: #667eea;
    border: none;
}

.landing-seller-card--gradient .btn-primary:hover,
.landing-product-card--gradient .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
}

.landing-seller-card--gradient .btn-outline-primary,
.landing-product-card--gradient .btn-outline-primary {
    border-color: white;
    color: white;
    background: transparent;
}

.landing-seller-card--gradient .btn-outline-primary:hover,
.landing-product-card--gradient .btn-outline-primary:hover {
    background: white;
    color: #667eea;
}

/* ================================================
   SHADOW 테마
   강한 그림자 효과로 입체감 강조
   ================================================ */

.landing-seller-card--shadow,
.landing-product-card--shadow {
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-seller-card--shadow:hover,
.landing-product-card--shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.landing-seller-card--shadow .card-body,
.landing-product-card--shadow .card-body {
    background: white;
    color: #333;
}

.landing-seller-card--shadow .card-footer,
.landing-product-card--shadow .card-footer {
    background: white;
}

.landing-seller-card--shadow .card-img-wrapper {
    border-radius: 16px 16px 0 0;
}

/* ================================================
   GLASSMORPHISM 테마
   투명한 유리 효과
   ================================================ */

.landing-component-wrapper--glassmorphism {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 20px;
    border-radius: 24px;
}

.landing-seller-card--glassmorphism,
.landing-product-card--glassmorphism {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.landing-seller-card--glassmorphism:hover,
.landing-product-card--glassmorphism:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.3);
}

.landing-seller-card--glassmorphism .card-body,
.landing-product-card--glassmorphism .card-body {
    background: transparent;
    color: #333;
}

.landing-seller-card--glassmorphism .card-footer,
.landing-product-card--glassmorphism .card-footer {
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.landing-seller-card--glassmorphism .card-img-wrapper {
    border-radius: 20px 20px 0 0;
}

.landing-seller-card--glassmorphism .btn-primary,
.landing-product-card--glassmorphism .btn-primary {
    background: rgba(102, 126, 234, 0.8);
    border: none;
    backdrop-filter: blur(10px);
}

.landing-seller-card--glassmorphism .btn-primary:hover,
.landing-product-card--glassmorphism .btn-primary:hover {
    background: rgba(102, 126, 234, 1);
}

.landing-seller-card--glassmorphism .btn-outline-primary,
.landing-product-card--glassmorphism .btn-outline-primary {
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.landing-seller-card--glassmorphism .btn-outline-primary:hover,
.landing-product-card--glassmorphism .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #764ba2;
}

/* ================================================
   반응형 디자인
   ================================================ */

@media (max-width: 768px) {
    .card-img-wrapper {
        height: 180px;
    }

    .landing-seller-card,
    .landing-product-card {
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper {
        height: 160px;
    }

    .landing-component-wrapper--glassmorphism {
        padding: 12px;
    }
}

/* ================================================
   공통 유틸리티 클래스
   ================================================ */

.landing-seller-card .card-title,
.landing-product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.landing-seller-card .card-text,
.landing-product-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.landing-seller-card .card-footer,
.landing-product-card .card-footer {
    padding: 1rem;
}

.landing-seller-card .btn,
.landing-product-card .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* 가격 표시 스타일 */
.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.original-price {
    font-size: 0.9rem;
}

.discounted-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.discount-amount {
    font-size: 0.85rem;
}

/* 구독 정보 배지 */
.subscription-info {
    margin-top: 8px;
}

.subscription-info .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}
