/* ==========================================
   1. 디자인 시스템 변수 정의 (컨셉 컬러 반영)
   ========================================== */
:root {
    --abydos-blue: #00A3FF;       /* 맑고 청량한 시안 블루 */
    --abydos-blue-hover: #008be0; /* 버튼 호버용 어두운 블루 */
    --bg-light-blue: #F0F6FC;     /* 우유빛 파스텔 하늘색 배경 */
    --sidebar-bg: #FFFFFF;        /* 내비게이션 화이트 */
    --card-bg: rgba(255, 255, 255, 0.92); /* 일러스트가 비치도록 약간 투명하게 */
    --text-dark: #1E202E;         /* 깊은 밤하늘색 (가독성 확보) */
    --text-muted: #64748B;        /* 차분한 슬레이트 그레이 */
    --border-soft: #E2E8F0;       /* 부드러운 경계선 색상 */
    --tag-bg: #E6F4FE;            /* 일반 태그 배경 */
}

/* ==========================================
   2. 기본 초기화 및 스타일 설정
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light-blue);
    color: var(--text-dark);
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    line-height: 1.6;
    /* padding: 60px 20px; */
    position: relative;
    overflow-x: hidden;
}

/* 은은하게 깔리는 서브컬처 감성의 배경 그라디언트 효과 */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 163, 255, 0.12), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(112, 0, 255, 0.08), transparent 50%);
    z-index: -1;
}

/* ==========================================
   3. 상단 헤더 영역 (라인업 타이틀)
   ========================================== */
.publisher-gallery {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

/* 타이틀 밑에 청량감을 주는 시안 블루 포인트 언더라인 */
.gallery-header h2::after {
    content: "";
    document: block;
    width: 60px;
    height: 4px;
    background-color: var(--abydos-blue);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

.gallery-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   4. 상품 카드 컴포넌트 스타일
   ========================================== */
.product-container {
    display: flex;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 163, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin-bottom: 40px; /* 카드와 카드 사이의 여백 */
}

/* 왼쪽: 표지 일러스트 영역 */
.product-image-area {
    flex: 1.1;
    background: linear-gradient(135deg, #F5FAFF 0%, #E6F4FE 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

.ebook-cover {
    position: relative;
    width: 100%;
    max-width: 280px;

    /* aspect-ratio: 1 / 1.414;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(43, 45, 66, 0.2),
                0 0 0 1px rgba(255,255,255,0.2) inset; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 1px rgb(164, 127, 127);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    transform: rotate(-1.5deg); /* 입체감을 주는 약간의 기울기 */
    transition: transform 0.3s ease;
}

/* 각 책마다 고유한 그라디언트를 주어 세계관 차별화 */
.ebook-cover.book-1 {
    /* background: linear-gradient(135deg, var(--abydos-blue), #7000FF); */
}

.ebook-cover.book-2 {
    /* background: linear-gradient(135deg, #FF007A, #7000FF); */
}

.product-container:hover .ebook-cover {
    transform: rotate(0deg) scale(1.03); /* 카드 마우스 호버 시 표지가 정면으로 커짐 */
}
.ebook-cover img {
    position: absolute;
    top : 50%;
    left : 50%;
    transform: translate(-50%, -50%);
    /* height: 100%; */
    z-index: -1;
    filter: blur(10px);
    transition: all 1s;

    width: 100%;
    max-width: 280px;
    aspect-ratio: 1 / 1.414;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(43, 45, 66, 0.2),
                0 0 0 1px rgba(255,255,255,0.2) inset;
}
.product-container:hover img {
    filter: blur(0px);
}


/* 오른쪽: 정보 영역 */
.product-info-area {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 태그 스타일 */
.tag-group {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--tag-bg);
    color: var(--abydos-blue);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag.genre {
    background-color: #EEEBFF;
    color: #7000FF;
}

/* 텍스트 타이포그래피 */
.product-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.author-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 시놉시스(줄거리) 상자 */
.synopsis-box {
    background-color: rgba(240, 246, 252, 0.6);
    border-left: 4px solid var(--abydos-blue);
    padding: 16px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: #4A4E69;
}

.price-container {
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    margin-bottom: 24px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* 버튼 스타일 */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-preview {
    flex: 1;
    background-color: #FFFFFF;
    color: var(--text-dark);
    border: 2px solid var(--border-soft);
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preview:hover {
    border-color: var(--text-dark);
    background-color: #F8F9FA;
}

.btn-purchase {
    flex: 2;
    background: linear-gradient(90deg, var(--abydos-blue), #00D1FF);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 163, 255, 0.2);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 163, 255, 0.3);
}

/* ==========================================
   5. 반응형 레이아웃 (모바일 대응)
   ========================================== */
@media (max-width: 768px) {
    body {
        padding: 40px 12px;
    }
    .gallery-header {
        margin-bottom: 35px;
    }
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    .product-container {
        flex-direction: column;
        border-radius: 20px;
        margin-bottom: 30px;
    }
    .product-image-area {
        padding: 40px 20px;
    }
    .product-info-area {
        padding: 35px 24px;
    }
    .product-title {
        font-size: 1.6rem;
    }
    .btn-group {
        flex-direction: column-reverse;
    }
}
