/* ==================================================
   GLINS PRODUCT DETAIL STYLES
   제품 상세 페이지(detail_*.html)의 공통 스타일.
   히어로 · 필터바 · 제품 카드 그리드 · 스펙 비교표 · CTA.

   반드시 common.css '뒤에' 로드할 것 (.product-section 등 일부
   클래스가 common.css와 겹치므로 이 파일이 나중에 와서 이겨야 함).
       <link rel="stylesheet" href="assets/common.css">
       <link rel="stylesheet" href="assets/detail.css">

   히어로 래퍼는 .detail-hero 클래스를 사용한다.
   ================================================== */

/* === Hero === */
.detail-hero {
    padding: 200px 5% 100px; text-align: center; position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(0, 234, 211, 0.08), transparent 60%);
}
.detail-hero .section-label {
    font-family: 'Montserrat', sans-serif; color: var(--point-color);
    font-weight: 700; letter-spacing: 3px; margin-bottom: 20px; display: block;
    font-size: 0.85rem; text-transform: uppercase; opacity: 0.9;
}
.hero-headline {
    font-family: 'Montserrat', sans-serif; font-size: 4rem; font-weight: 800; margin-bottom: 25px; line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 40%, #aaaaaa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards;
}
.hero-desc {
    font-size: 1.2rem; color: #ccc; max-width: 800px; margin: 0 auto; line-height: 1.7;
    opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards 0.3s;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* === Filter Bar === */
.filter-container {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 80px; flex-wrap: wrap;
    opacity: 0; transform: translateY(30px); animation: fadeUp 1s forwards 0.6s;
}
.filter-btn {
    padding: 12px 30px; border-radius: 50px; border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.03); color: #888; font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--point-color); color: #000; background: var(--point-color);
    box-shadow: 0 0 20px rgba(0, 234, 211, 0.4);
}

/* === Product Grid & Filter Animation === */
.product-section { padding: 0 5% 150px; max-width: 1400px; margin: 0 auto; }
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 40px;
}

.product-card.hidden { display: none; }
@keyframes filterFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.product-card.animating { animation: filterFadeIn 0.5s ease-out forwards; }

.product-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 24px;
    padding: 40px; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; flex-direction: column; min-height: 520px;
}
.product-card:hover {
    transform: translateY(-12px); border-color: var(--point-color);
    background: rgba(255, 255, 255, 0.04); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.product-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px;
    background: radial-gradient(circle at top right, var(--point-color), transparent 70%);
    opacity: 0; transition: 0.4s; filter: blur(20px);
}
.product-card:hover::before { opacity: 0.15; }

.card-badge {
    position: absolute; top: 30px; right: 30px; padding: 6px 14px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.3); color: #bbb;
    z-index: 2; /* 이미지 래퍼(z-index:1) 위에 표시되도록 (뱃지 텍스트 잘림 방지) */
}
.product-card:hover .card-badge { border-color: var(--point-color); color: var(--point-color); }

/* Development Badge */
.card-badge.dev { border-color: #ff9800; color: #ff9800; background: rgba(255, 152, 0, 0.1); }

.card-img-wrapper {
    height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
    position: relative; z-index: 1;
}
.card-img-wrapper img {
    max-width: 90%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6)); transition: transform 0.4s;
}
.product-card:hover .card-img-wrapper img { transform: scale(1.1); }
/* 개발중(dev-mode) 카드의 실제 이미지는 흐리게 */
.product-card.dev-mode .card-img-wrapper img { filter: grayscale(100%) opacity(0.5); }

/* === Development Placeholder (CSS Only Image) === */
.dev-placeholder {
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.dev-icon-box {
    font-size: 3rem; margin-bottom: 10px; position: relative;
    width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05); border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.dev-icon { filter: grayscale(100%) brightness(0.7); }
.dev-text {
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    color: #666; letter-spacing: 2px; text-transform: uppercase;
}
/* Scan Animation */
.dev-scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 234, 211, 0.2), transparent);
    transform: translateY(-100%);
    animation: scan 3s linear infinite;
}
@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.product-card:hover .dev-icon-box { box-shadow: 0 0 30px rgba(0, 234, 211, 0.2); }
.product-card:hover .dev-text { color: var(--point-color); }
.product-card:hover .dev-icon { filter: grayscale(0%) brightness(1.2); }

.card-title { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; color: #fff; }
.card-desc { font-size: 0.95rem; color: #aaa; margin-bottom: 30px; line-height: 1.6; flex-grow: 1; }

.card-specs { margin-bottom: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.spec-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; }
.spec-label { color: #666; font-family: 'Montserrat', sans-serif; font-weight: 600; }
.spec-value { color: #eee; font-family: 'JetBrains Mono', monospace; }

.card-btn {
    width: 100%; padding: 16px; text-align: center; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s; background: transparent; cursor: pointer;
    text-transform: uppercase; letter-spacing: 1px;
}
.card-btn:hover { background: var(--point-color); border-color: var(--point-color); color: #000; box-shadow: 0 0 20px rgba(0, 234, 211, 0.4); }
.card-btn.disabled { border-color: #444; color: #666; cursor: not-allowed; }
.card-btn.disabled:hover { background: transparent; color: #666; box-shadow: none; transform: none; }
/* 링크(<a>) 형태의 다운로드 버튼도 <button> 과 똑같이 보이도록 */
a.card-btn { display: block; text-decoration: none; }

/* Custom Solution Card */
.product-card.custom {
    border: 2px dashed rgba(255,255,255,0.15); background: transparent;
    align-items: center; justify-content: center; text-align: center;
}
.product-card.custom:hover { border-color: var(--point-color); background: rgba(0, 234, 211, 0.03); }
.custom-icon { font-size: 4rem; color: #333; margin-bottom: 20px; transition: 0.3s; }
.product-card.custom:hover .custom-icon { color: var(--point-color); transform: rotate(90deg); }
.custom-link { color: var(--point-color); font-weight: 700; margin-top: 20px; display: inline-block; border-bottom: 1px solid var(--point-color); padding-bottom: 2px; }

/* === Tech Specs Comparison Table === */
.comparison-section { padding: 100px 5%; background: #08080a; border-top: 1px solid var(--border-color); }
.comp-title { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 60px; color: #fff; }

.table-container { max-width: 1200px; margin: 0 auto; overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.spec-table th, .spec-table td {
    padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem; color: #ccc; vertical-align: middle;
}
.spec-table th {
    font-family: 'Montserrat', sans-serif; font-weight: 700; color: #fff; background: rgba(255,255,255,0.02);
    border-top: 2px solid var(--border-color);
}
.spec-table th:first-child { text-align: left; padding-left: 30px; width: 25%; color: var(--point-color); }
.spec-table td:first-child { text-align: left; padding-left: 30px; font-weight: 600; color: #fff; font-family: 'Montserrat', sans-serif; }
.spec-table td { font-family: 'JetBrains Mono', monospace; line-height: 1.5; }
.spec-table tr:hover td { background: rgba(255,255,255,0.03); color: #fff; }

.text-tbd { color: #555; font-style: italic; }

/* === CTA === */
.cta-section {
    padding: 140px 5%; text-align: center; border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, rgba(0, 234, 211, 0.05) 0%, #0a0a0c 70%);
}
.cta-title { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 30px; font-family: 'Montserrat', sans-serif; }
.cta-btn {
    display: inline-block; padding: 18px 50px; font-weight: 700; color: var(--point-color);
    border: 1px solid var(--point-color); border-radius: 4px; text-transform: uppercase;
    font-family: 'Montserrat', sans-serif; transition: 0.3s; letter-spacing: 1px;
}
.cta-btn:hover { background: var(--point-color); color: #000; box-shadow: 0 0 30px rgba(0, 234, 211, 0.4); }

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-headline { font-size: 3rem; }
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 768px) {
    .hero-headline { font-size: 2.5rem; }
}
