/* =========================================
   LIFEHYP RENEWAL DESIGN SYSTEM (2025)
   Theme: Dark, Minimalist, Aurora, Glassmorphism
   ========================================= */

:root {
    /* Colors */
    --bg-dark: #050510;
    /* Ultra dark indigo/black */
    --text-main: #ffffff;
    /* Pure white */
    --text-sub: #a0a0b0;
    /* Soft grey-purple */
    --accent-blue: #4facfe;
    --accent-purple: #00f2fe;
    /* Cyan/Purple gradient stops */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);

    /* Fonts */
    --font-kr: 'Noto Sans KR', sans-serif;
    --font-en: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-kr);
    margin: 0;
    padding: 0;
    /* Aurora Background Effect */
    background-image:
        radial-gradient(circle at 20% 40%, rgba(76, 29, 149, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(30, 64, 175, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    background-attachment: fixed;
    background-size: cover;
}

/* Override existing header styles for dark mode */
header {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    position: fixed !important;
    /* ★ width 90% + padding 0 5% = 100% (style.css와 동일하게) */
    width: 90% !important;
    padding: 0 5% !important;
    box-sizing: content-box !important;
    top: 0;
    left: 0;
    z-index: 9999 !important;
}

nav .logo a {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

nav ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
}

nav ul li a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* =========================================
   NEW HERO SECTION (Bilingual)
   ========================================= */
.renewal-hero {
    height: 90vh;
    /* Almost full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glowing text effect */
.renewal-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #b3cdd1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
    line-height: 1.2;
}

.renewal-hero h2 {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.renewal-hero .sub-text {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Glassmorphism Button */
.btn-glass-glow {
    display: inline-block;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-glass-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glass-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
    border-color: rgba(79, 172, 254, 0.5);
}

.btn-glass-glow:hover::before {
    left: 100%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .renewal-hero h1 {
        font-size: 2.2rem;
    }

    .renewal-hero h2 {
        font-size: 1.2rem;
    }

    .btn-glass-glow {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* =========================================
   GLASS CARDS & CONTENT
   ========================================= */
.services,
.newsletter-redesigned {
    background: transparent !important;
    /* Remove old backgrounds */
    position: relative;
    z-index: 1;
}

.services h2 {
    color: #fff !important;
}

/* Override existing cards to be glass cards */
.service-cards .card {
    background: rgba(25, 25, 35, 0.6) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-cards .card h3 {
    color: #fff !important;
}

.service-cards .card p {
    color: #ccc !important;
}

/* Newsletter Section Renewal */
.newsletter-benefits {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eee !important;
}

.newsletter-benefits li {
    color: #ddd !important;
}

.newsletter-benefits li strong {
    color: #4facfe !important;
}

/* Inputs in Dark Mode */
input[type="email"],
input[type="text"],
input[type="tel"] {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

input::placeholder {
    color: #888;
}

/* Footer Dark Mode */
footer {
    background-color: #020205 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888 !important;
}

/* =========================================
   GLOBAL DARK MODE OVERRIDES (Sub-pages)
   ========================================= */

/* Common Container & Text */
main {
    padding-top: 80px !important;
    /* Consistent with style.css 80px */
}

.sub-page-container,
section,
.content-wrapper {
    background-color: transparent !important;
    color: var(--text-main) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff !important;
}

p,
li,
span {
    color: var(--text-sub) !important;
}

/* Sub-page Hero */
.sub-page-hero {
    background: linear-gradient(to bottom, rgba(5, 5, 16, 0.8), rgba(5, 5, 16, 1)) !important;
    padding: 80px 20px !important;
    text-align: center;
}

.sub-page-hero h1 {
    font-size: 2.5rem !important;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    margin-bottom: 20px !important;
}

/* Path Cards (Used in Future.php etc) */
.path-card {
    background: rgba(25, 25, 40, 0.6) !important;
    /* Low opacity dark bg */
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
}

.path-card:hover {
    border-color: rgba(79, 172, 254, 0.5) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.path-card h3 {
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 10px;
}

.path-card p {
    color: #ccc !important;
}

/* Buttons in Cards */
.single-cta,
.branch-button,
.cta-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

.single-cta:hover,
.branch-button:hover,
.cta-button:hover {
    background: rgba(79, 172, 254, 0.2) !important;
    border-color: #4facfe !important;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4) !important;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Primary Button Override */
.branch-button.primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none !important;
    color: #000 !important;
    /* Dark text on bright button */
    font-weight: bold !important;
}

.branch-button.primary:hover {
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6) !important;
    color: #fff !important;
}

/* =========================================
   NAVIGATION MENU FIXES
   ========================================= */
/* Dropdown Menu - Dark Glass */
nav ul ul.sub-menu {
    background: rgba(5, 5, 20, 0.95) !important;
    /* Dark background */
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

nav ul ul.sub-menu li a {
    color: #cccccc !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator */
}

nav ul ul.sub-menu li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    text-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
}

/* Mobile Menu Fixes */
@media (max-width: 1024px) {
    .nav-links {
        background: rgba(5, 5, 16, 0.98) !important;
        /* Very dark for mobile menu */
        backdrop-filter: blur(15px);
    }
}

/* =========================================
   GLOBAL FORM & TABLE STYLING
   ========================================= */

/* Login/Register Containers */
.login-container,
.join-container,
.mypage-container {
    background: rgba(25, 25, 40, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    padding: 40px !important;
    max-width: 500px;
    margin: 50px auto !important;
}

/* Inputs & Textareas */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #4facfe !important;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3) !important;
    outline: none !important;
}

/* Submit Buttons */
input[type="submit"],
button[type="submit"] {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none !important;
    color: #000 !important;
    font-weight: bold !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

/* Tables (Board, etc.) */
table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100%;
}

th {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 15px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
}

td {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #ddd !important;
    padding: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Links in content */
.content-wrapper a,
.board-list a {
    color: #4facfe !important;
    text-decoration: none;
}

/* =========================================
   BOARD & MEMBER PAGE FIXES
   ========================================= */

/* Board Container Overrides */
.board-container,
.major-issues-container {
    background: transparent !important;
    /* Remove white bg */
    border: none !important;
    color: #fff !important;
}

/* Major Issues / Notices Box */
.major-issues-container {
    background: rgba(25, 25, 40, 0.6) !important;
    border: 1px solid rgba(255, 204, 0, 0.3) !important;
    /* Keep slight yellow hint */
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.major-issues-container h2 {
    color: #ffcc00 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.major-issues-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.major-issues-list a.issue-title {
    color: #eee !important;
}

/* Blog Card (Board) Overrides */
.blog-card {
    background: rgba(25, 25, 35, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.blog-card .card-content {
    background: transparent !important;
}

.blog-card h3 {
    color: #4facfe !important;
}

.blog-card p {
    color: #aaa !important;
}

/* Login & Join Form Container Specific Overrides */
/* This targets the inline-styled div in login.php */
.login-form-container,
.contact-form {
    background: rgba(25, 25, 40, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    border-radius: 15px !important;
    padding: 30px !important;
}

/* Agreement Textareas in Prejoin */
.agreement-text {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ccc !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Hypno-Secret Content Sections */
/* Override specific white backgrounds in sub-pages */
.content-section {
    background-color: rgba(25, 25, 40, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #eee !important;
    box-shadow: none !important;
}

.content-section h2 span {
    background: transparent !important;
}

/* Card Style B (Hypno-Secret) */
.card-style-b {
    background: rgba(25, 25, 35, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.card-style-b-content h3 {
    color: #fff !important;
}

.card-style-b-content p {
    color: #ccc !important;
}

/* =========================================
   FULL-WIDTH HERO SECTIONS
   ========================================= */
/* Allow hero sections to be centered properly */
.renewal-page-header {
    width: 100% !important;
    position: relative;
    max-width: none !important;
    padding: 20px 20px 30px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ensure sub-page-container doesn't restrict hero */
.sub-page-container .renewal-page-header {
    margin-top: 0;
}

/* Mobile adjustments */
    @media (max-width: 768px) {
    .renewal-page-header {
        padding: 15px 20px 20px !important;
    }

    .renewal-page-header h1 {
        font-size: 2.2rem;
    }
}

/* RENEWAL PAGE WRAPPER & UTILITIES */
.renewal-page-wrapper {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    /* main already has padding-top: 80px, no extra needed */
}

.engraved-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #888;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.05);
    letter-spacing: 1px;
}

.glow-text-blue {
    color: #4facfe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.glow-text-purple {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.glow-text-green {
    color: #22c55e;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* Additional Form Control */
.form-input-group {
    margin-bottom: 25px;
}

.glass-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    transition: all 0.3s;
}

.glass-input:focus {
    border-color: var(--accent-blue) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2) !important;
}