/* ============================================================
   TECH-NEON DESIGN SYSTEM - 헤어샵 426 장한평역 미용실
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
    --tn-bg-primary: #0a0a12;
    --tn-bg-secondary: #12121e;
    --tn-bg-card: #16162a;
    --tn-cyan: #00ffd1;
    --tn-pink: #ff0080;
    --tn-purple: #9400ff;
    --tn-blue: #3b82f6;
    --tn-white: #f0f0f5;
    --tn-gray: #8892a4;
    --tn-gray-light: #b0b8c8;
    --tn-glow-cyan: rgba(0, 255, 209, 0.4);
    --tn-glow-pink: rgba(255, 0, 128, 0.3);
    --tn-glow-purple: rgba(148, 0, 255, 0.3);
    --tn-font-kr: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --tn-font-en: 'Orbitron', monospace;
    --tn-radius: 16px;
    --tn-radius-sm: 8px;
    --tn-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL RESETS FOR TECH-NEON ========== */
.tn-page, .tn-post {
    font-family: var(--tn-font-kr);
    color: var(--tn-white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* ========== NEON GRADIENT BORDER ========== */
.tn-neon-border {
    position: relative;
    border: 1px solid rgba(0, 255, 209, 0.15);
    border-radius: var(--tn-radius);
}
.tn-neon-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--tn-cyan), var(--tn-purple), var(--tn-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: 0.3;
    transition: opacity var(--tn-transition);
}
.tn-neon-border:hover::before {
    opacity: 0.7;
}

/* ========== CARDS ========== */
.tn-card {
    background: linear-gradient(145deg, var(--tn-bg-card) 0%, rgba(10, 10, 18, 0.95) 100%);
    border: 1px solid rgba(0, 255, 209, 0.1);
    border-radius: var(--tn-radius);
    padding: 32px;
    transition: all var(--tn-transition);
    position: relative;
    overflow: hidden;
}
.tn-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--tn-cyan), var(--tn-purple), var(--tn-pink));
    opacity: 0;
    transition: opacity var(--tn-transition);
}
.tn-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 209, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--tn-glow-cyan);
}
.tn-card:hover::after { opacity: 1; }

/* ========== SECTION TITLES ========== */
.tn-section-title {
    font-family: var(--tn-font-kr);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tn-white);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}
.tn-section-title .tn-accent {
    color: var(--tn-cyan);
    text-shadow: 0 0 20px var(--tn-glow-cyan);
}
.tn-section-subtitle {
    font-size: 1rem;
    color: var(--tn-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ========== BUTTONS ========== */
.tn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--tn-font-kr);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--tn-transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}
.tn-btn-primary {
    background: linear-gradient(135deg, var(--tn-cyan), #00c9a7);
    color: var(--tn-bg-primary);
    box-shadow: 0 8px 24px var(--tn-glow-cyan);
}
.tn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--tn-glow-cyan);
    color: var(--tn-bg-primary);
}
.tn-btn-outline {
    background: transparent;
    color: var(--tn-cyan);
    border: 1px solid var(--tn-cyan);
}
.tn-btn-outline:hover {
    background: rgba(0, 255, 209, 0.1);
    box-shadow: 0 0 20px var(--tn-glow-cyan);
    color: var(--tn-cyan);
}
.tn-btn-pink {
    background: linear-gradient(135deg, var(--tn-pink), #cc0066);
    color: #fff;
    box-shadow: 0 8px 24px var(--tn-glow-pink);
}
.tn-btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--tn-glow-pink);
}

/* ========== GALLERY GRID ========== */
.tn-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.tn-gallery-item {
    border-radius: var(--tn-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}
.tn-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tn-gallery-item:hover img {
    transform: scale(1.05);
}
.tn-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 18, 0.7) 0%, transparent 50%);
    pointer-events: none;
}

/* ========== TAGS / BADGES ========== */
.tn-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 209, 0.3);
    color: var(--tn-cyan);
    background: rgba(0, 255, 209, 0.08);
}

/* ========== IMAGE FRAMES ========== */
.tn-img-frame {
    position: relative;
    border-radius: var(--tn-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 209, 0.15);
}
.tn-img-frame img {
    width: 100%;
    height: auto;
    display: block;
}
.tn-img-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 40px rgba(0, 255, 209, 0.05);
    pointer-events: none;
    z-index: 1;
}

/* ========== DIVIDERS ========== */
.tn-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tn-cyan), transparent);
    margin: 40px 0;
    opacity: 0.3;
}

/* ========== TESTIMONIAL / QUOTE ========== */
.tn-quote {
    border-left: 3px solid var(--tn-cyan);
    padding: 20px 24px;
    margin: 24px 0;
    background: rgba(0, 255, 209, 0.03);
    border-radius: 0 var(--tn-radius-sm) var(--tn-radius-sm) 0;
    font-style: italic;
    color: var(--tn-gray-light);
}

/* ========== FAQ SECTION ========== */
.tn-faq-item {
    background: var(--tn-bg-card);
    border: 1px solid rgba(0, 255, 209, 0.08);
    border-radius: var(--tn-radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--tn-transition);
}
.tn-faq-item:hover {
    border-color: rgba(0, 255, 209, 0.25);
}
.tn-faq-q {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--tn-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tn-faq-q::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--tn-cyan);
    transition: transform var(--tn-transition);
}
.tn-faq-item.open .tn-faq-q::after {
    transform: rotate(45deg);
}
.tn-faq-a {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: var(--tn-gray-light);
    line-height: 1.8;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.tn-faq-item.open .tn-faq-a {
    padding: 0 24px 18px;
    max-height: 500px;
}

/* ========== TABLE ========== */
.tn-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.tn-table th {
    background: var(--tn-bg-card);
    color: var(--tn-cyan);
    font-weight: 600;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 255, 209, 0.2);
}
.tn-table td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--tn-gray-light);
}
.tn-table tr:hover td {
    background: rgba(0, 255, 209, 0.03);
}

/* ========== STEP / PROCESS LIST ========== */
.tn-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}
.tn-steps li {
    counter-increment: step-counter;
    padding: 16px 16px 16px 60px;
    position: relative;
    margin-bottom: 16px;
    background: var(--tn-bg-card);
    border-radius: var(--tn-radius-sm);
    border: 1px solid rgba(0, 255, 209, 0.08);
    color: var(--tn-gray-light);
}
.tn-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--tn-cyan), var(--tn-purple));
    color: var(--tn-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ========== ICON LIST ========== */
.tn-icon-list {
    list-style: none;
    padding: 0;
}
.tn-icon-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: var(--tn-gray-light);
}
.tn-icon-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--tn-cyan);
    font-weight: bold;
}

/* ========== INFO BOX ========== */
.tn-info-box {
    background: rgba(0, 255, 209, 0.05);
    border: 1px solid rgba(0, 255, 209, 0.15);
    border-radius: var(--tn-radius-sm);
    padding: 20px 24px;
    margin: 24px 0;
}
.tn-info-box h4 {
    color: var(--tn-cyan);
    margin-bottom: 8px;
    font-weight: 600;
}
.tn-info-box p {
    color: var(--tn-gray-light);
    margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .tn-card { padding: 24px 20px; }
    .tn-section-title { font-size: 1.5rem; }
    .tn-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    .tn-btn { padding: 12px 24px; font-size: 0.9rem; }
    .tn-table { font-size: 0.85rem; }
    .tn-table th, .tn-table td { padding: 10px 12px; }
}

/* ========== WORDPRESS POST CONTENT OVERRIDES ========== */
body.single-post, body.page {
    background: var(--tn-bg-primary) !important;
}
.wp-block-post-content, .entry-content {
    color: var(--tn-gray-light);
    line-height: 1.9;
}
.wp-block-post-content h2, .entry-content h2 {
    color: var(--tn-white);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 209, 0.15);
}
.wp-block-post-content h3, .entry-content h3 {
    color: var(--tn-cyan);
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}
.wp-block-post-content p, .entry-content p {
    margin-bottom: 20px;
    color: var(--tn-gray-light);
}
.wp-block-post-content img, .entry-content img {
    border-radius: var(--tn-radius);
    border: 1px solid rgba(0, 255, 209, 0.1);
}
.wp-block-post-content a, .entry-content a {
    color: var(--tn-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 209, 0.3);
    transition: all var(--tn-transition);
}
.wp-block-post-content a:hover, .entry-content a:hover {
    border-bottom-color: var(--tn-cyan);
    text-shadow: 0 0 10px var(--tn-glow-cyan);
}
