/**
 * 프론트엔드 CSS (포스트에 표시되는 스타일)
 * 
 * @package CAB_Coupang
 * @since 2.0.0
 */

/* 히어로 이미지 */
.cab-hero {
    margin: 20px 0 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cab-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 리드 텍스트 */
.cab-lead {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.85;
    margin: 0 0 25px;
}

/* 상품 카드 */
.cab-product-card {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #e9ecef;
    padding: 20px;
    margin: 25px 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cab-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 상품 썸네일 */
.cab-product-card .cab-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}

/* 상품 정보 */
.cab-product-card .cab-info {
    flex: 1;
    min-width: 0;
}

/* 상품 제목 */
.cab-product-card .cab-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    color: #212529;
    font-weight: 600;
}

/* 상품 메타 정보 */
.cab-product-card .cab-meta {
    font-size: 1rem;
    color: #51565d;
    margin: 0 0 12px;
    line-height: 1.7;
}

/* 별점 */
.cab-stars {
    font-size: 0.95rem;
    color: #111;
    margin: 0 0 10px;
}

.cab-stars small {
    color: #6b7280;
    margin-left: 5px;
}

/* 배지 */
.cab-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.cab-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* CTA 버튼 */
.cab-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: background 0.2s;
}

.cab-btn:hover {
    background: #1e50d6;
    color: #fff !important;
}

/* 섹션 제목 */
.cab-section-title {
    margin: 30px 0 15px;
    font-size: 22px;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    color: #212529;
}

/* 비교 테이블 */
.cab-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cab-compare th,
.cab-compare td {
    border: 1px solid #e9ecef;
    padding: 12px;
    text-align: left;
    font-size: 0.95rem;
}

.cab-compare th {
    background: #f8f9fa;
    font-weight: 600;
}

.cab-compare tr:nth-child(even) {
    background: #fafbfc;
}

/* 고지문 */
.cab-disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-top: 30px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
    text-align: center;
}

/* 리스트 스타일 */
.cab-info ul {
    margin: 10px 0 10px 20px;
    list-style: disc;
}

.cab-info li {
    margin: 5px 0;
    line-height: 1.6;
}

/* FAQ 섹션 */
.cab-faq {
    margin: 30px 0;
}

.cab-faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.cab-faq-question {
    background: #f8f9fa;
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.cab-faq-question:after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.cab-faq-answer {
    padding: 15px;
    background: #fff;
    line-height: 1.7;
}

/* 장단점 박스 */
.cab-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.cab-pros,
.cab-cons {
    border-radius: 8px;
    padding: 15px;
}

.cab-pros {
    background: #ecf7ed;
    border: 1px solid #46b450;
}

.cab-cons {
    background: #fff8e5;
    border: 1px solid #ffb900;
}

.cab-pros h4,
.cab-cons h4 {
    margin: 0 0 10px;
    font-size: 16px;
}

.cab-pros ul,
.cab-cons ul {
    margin: 0;
    padding-left: 20px;
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .cab-product-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cab-product-card .cab-thumb {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
    
    .cab-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .cab-compare {
        font-size: 0.85rem;
    }
    
    .cab-compare th,
    .cab-compare td {
        padding: 8px;
    }
}

/* 인쇄 스타일 */
@media print {
    .cab-btn {
        display: none;
    }
    
    .cab-product-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .cab-disclaimer {
        page-break-before: avoid;
    }
}