/* 프로모션 페이지 전용 스타일 */

/* 메인 컨테이너 */
.promotion-main {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

/* 프로모션 헤더 - 블로그 헤더와 동일한 스타일 */
.promotion-header {
    text-align: center;
    margin: 40px 0;
    padding-bottom: 20px;
}

.promotion-header h1 {
    font-size: 2.5rem;
    color: #000;
    font-weight: 700;
}

.promotion-header p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    font-weight: 400;
}

/* 프로모션 툴바 */
.promotion-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.category-btn.active {
    color: #fff;
    background-color: #007aff;
    border-color: #007aff;
    font-weight: 600;
}

/* 프로모션 그리드 */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 프로모션 카드 */
.promotion-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 카드 헤더 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-details {
    flex: 1;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.discount-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.3;
}


/* 카드 콘텐츠 */
.card-content {
    flex: 1;
    padding-top: 15px;
}

.promotion-description {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promotion-description li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.promotion-description li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* 카드 푸터 */
.card-footer {
    text-align: center;
    margin-top: 15px;
}

.coupon-btn, .promotion-btn {
    width: 100%;
    padding: 12px 24px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coupon-btn:hover, .promotion-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* 활성 네비게이션 스타일 */
.nav a.active {
    color: #007aff;
    font-weight: 600;
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007aff;
    border-radius: 1px;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-card {
    animation: fadeIn 0.6s ease-out;
}

.promotion-card:nth-child(odd) { animation-delay: 0.1s; }
.promotion-card:nth-child(even) { animation-delay: 0.2s; }



/* 반응형 디자인 */
@media (max-width: 768px) {
    .promotion-header {
        margin: 40px 0;
    }
    
    .promotion-header h1 {
        font-size: 2.5rem;
    }
    
    .promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promotion-card {
        padding: 20px;
    }
    
    .category-filter {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .discount-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .promotion-header {
        margin: 40px 0;
    }
    
    .promotion-header h1 {
        font-size: 2.5rem;
    }
    
    .promotion-main {
        padding: 15px 0;
    }
    
    .promotion-card {
        padding: 16px;
    }
    
    .category-filter {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
}

/* 쿠폰 코드는 브랜드 상세 페이지에서만 표시 */

/* 프로모션 타입별 카드 푸터 */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-footer .promotion-btn {
    width: 100%;
}

/* ============ 브랜드 카드 스타일 ============ */

/* 브랜드 그리드 */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* 브랜드 카드 */
.brand-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #007aff;
}

/* 브랜드 헤더 */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    position: relative; /* For positioning promotion count */
}

.brand-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

/* 브랜드 컨텐츠 */
.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the description list block */
    gap: 12px;
    margin-bottom: 20px;
}

.brand-description-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.brand-description-list li {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
    position: relative;
    padding-left: 1.2em;
}

.brand-description-list li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1em;
    line-height: 1.6;
}

.brand-stats {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.promo-count-badge, .discount-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px; /* 모서리 둥근 사각형 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    line-height: 1.4;
}

.promo-count-badge {
    background-color: #28a745; /* 초록색 배경 */
}



/* 브랜드 푸터 */
.brand-footer {
    margin-top: auto;
}

.brand-btn {
    width: 100%;
    background: linear-gradient(135deg, #007aff, #0056d2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.brand-btn:hover {
    background: linear-gradient(135deg, #0056d2, #003d9a);
    transform: translateY(-1px);
}

.brand-btn:active {
    transform: translateY(0);
}

/* 반응형 - 브랜드 카드 */
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        padding: 10px 0;
    }
    
    .brand-card {
        padding: 20px;
    }
    
    .brand-icon-large {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 18px;
    }
}