/* ============================================================
 *  GADRIA SIGNATURE DESIGN v1.1
 *  © 2024-2026 gadria.net - All Rights Reserved
 *  
 *  - 다층 합성 사선 패턴 (5 레이어)
 *  - SVG 가드리아 로고 미세 워터마크
 *  - 동적 광원 효과 (CSS 애니메이션)
 *  - 시그니처 헤더 엠블럼
 *  
 *  ⚠ 무단 도용 금지. Designer signature: GADRIA-SIG-2026-K0014
 * ============================================================ */

:root {
    --gadria-emblem-glow: rgba(240, 208, 128, 0.4);
    --gadria-hero-shadow: rgba(201, 168, 76, 0.18);
}

/* ──── page-hero 시그니처 (override) ──── */
.page-hero {
    min-height: 140px !important;
    height: auto !important;
    padding: 30px 20px !important;
    background-color: #0a0500 !important;
    background-image:
        repeating-linear-gradient(135deg, transparent 0px, transparent 7px, rgba(201, 168, 76, 0.045) 7px, rgba(201, 168, 76, 0.045) 8px),
        repeating-linear-gradient(45deg, transparent 0px, transparent 28px, rgba(240, 208, 128, 0.02) 28px, rgba(240, 208, 128, 0.02) 29px),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g fill='none' stroke='%23c9a84c' stroke-opacity='0.025' stroke-width='1'><circle cx='90' cy='90' r='42'/><circle cx='90' cy='90' r='62'/><path d='M90 48 L102 70 L128 72 L108 90 L114 116 L90 102 L66 116 L72 90 L52 72 L78 70 Z'/><text x='90' y='95' text-anchor='middle' font-family='serif' font-size='10' fill='%23c9a84c' fill-opacity='0.04' letter-spacing='2'>GADRIA</text></g></svg>"),
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240, 208, 128, 0.10) 0%, transparent 70%),
        linear-gradient(180deg, #1a0f00 0%, #0a0500 100%) !important;
    background-size: auto, auto, 180px 180px, auto, auto !important;
    border-bottom: 2px solid var(--gold-dark) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.page-hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.79  0 0 0 0 0.66  0 0 0 0 0.30  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") !important;
    background-size: auto !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    mix-blend-mode: overlay !important;
    z-index: 1 !important;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, transparent 40%, rgba(240, 208, 128, 0.05) 50%, transparent 60%, transparent 100%);
    background-size: 300% 100%;
    animation: gadria-hero-light-flow 16s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes gadria-hero-light-flow {
    0%   { background-position: -150% 0; }
    100% { background-position:  250% 0; }
}

.page-hero h1 {
    position: relative !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    font-family: 'Cinzel Decorative', 'Noto Serif KR', serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--gold-light) !important;
    letter-spacing: 6px !important;
    text-shadow:
        0 0 16px var(--gadria-emblem-glow),
        0 0 32px var(--gadria-hero-shadow),
        0 2px 4px rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
}

/* 가드리아 엠블럼 (교차된 검 + 이중 원 + 4방향 마름모) */
.page-hero h1::before {
    content: '';
    display: inline-block;
    width: 44px;
    height: 44px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='%23f0d080'/><stop offset='1' stop-color='%238a6a1a'/></linearGradient></defs><g fill='none' stroke='url(%23g)' stroke-width='1.5' stroke-linecap='round'><circle cx='24' cy='24' r='18' opacity='0.5'/><circle cx='24' cy='24' r='13' opacity='0.7'/><path d='M14 14 L34 34 M34 14 L14 34' stroke-width='2.2'/><path d='M24 8 L26 22 L24 24 L22 22 Z' fill='url(%23g)' opacity='0.9'/><path d='M24 40 L26 26 L24 24 L22 26 Z' fill='url(%23g)' opacity='0.9'/><path d='M8 24 L22 22 L24 24 L22 26 Z' fill='url(%23g)' opacity='0.9'/><path d='M40 24 L26 22 L24 24 L26 26 Z' fill='url(%23g)' opacity='0.9'/></g></svg>") center/contain no-repeat;
    filter: drop-shadow(0 0 8px var(--gadria-emblem-glow));
    flex-shrink: 0;
}

/* 하단 장식 라인 */
.page-hero .hero-deco {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.page-hero .hero-deco::before,
.page-hero .hero-deco::after {
    content: '';
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-hero .hero-deco .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

/* fund.php 의 .sub 호환 */
.page-hero .sub {
    position: relative !important;
    z-index: 5 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    color: rgba(240, 208, 128, 0.55) !important;
    letter-spacing: 4px !important;
    margin: 0 !important;
}

.page-hero > * {
    position: relative;
    z-index: 5;
}

/* ──── 시그니처 카드 모서리 장식 (옵션) ──── */
.gadria-corner {
    position: relative;
}

.gadria-corner::before,
.gadria-corner::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold);
    pointer-events: none;
    opacity: 0.7;
}

.gadria-corner::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}

.gadria-corner::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}

/* ──── 푸터 워터마크 (옵션) ──── */
.gadria-watermark {
    display: block;
    text-align: center;
    padding: 18px 0;
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    color: rgba(201, 168, 76, 0.35);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    margin-top: 40px;
}

.gadria-watermark::before {
    content: '⚜ ';
    color: var(--gold);
    margin-right: 6px;
}

.gadria-watermark::after {
    content: ' ⚜';
    color: var(--gold);
    margin-left: 6px;
}

/* ──── 반응형 (모바일) ──── */
@media (max-width: 768px) {
    .page-hero {
        min-height: 110px !important;
        padding: 20px 16px !important;
    }
    
    .page-hero h1 {
        font-size: 19px !important;
        letter-spacing: 3px !important;
        gap: 12px !important;
    }
    
    .page-hero h1::before {
        width: 32px;
        height: 32px;
    }
    
    .page-hero .hero-deco::before,
    .page-hero .hero-deco::after {
        width: 40px;
    }
    
    .page-hero .sub {
        font-size: 10px !important;
        letter-spacing: 2px !important;
    }
}

/* ============================================================
 *  END - Build: 2026.05.11 / Hash: GADRIA-SIG-2026-K0014
 *  ⚠ This file is the proprietary design of gadria.net
 * ============================================================ */
