/**
 * BDS Page Hero Styles - Ultra Compact Premium Design
 * Minimalist hero sections with elegant white typography
 */

/* ========================================
   ULTRA COMPACT PREMIUM HERO
======================================== */
.page-hero {
    position: relative;
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, 
        #0EA5E9 0%,
        #3b82f6 50%,
        #6366f1 100%);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

/* Elegant Overlay Pattern */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: gentleFloat 25s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(-20px);
    }
}

/* Subtle Grid Pattern */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Hero Content Wrapper */
.page-hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

/* Premium White Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.hero-badge i {
    font-size: 0.813rem;
    color: white;
}

/* White Elegant Title */
.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* White Refined Subtitle */
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   GLASS FEATURE CARDS
======================================== */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.hero-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-feature-card:hover::before {
    opacity: 1;
}

.hero-feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 0.875rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-feature-card:hover .hero-feature-icon {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-feature-card:hover .hero-feature-icon i {
    transform: scale(1.15) rotateY(360deg);
}

.hero-feature-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hero-feature-desc {
    display: block;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 400;
}

/* ========================================
   ELEGANT DECORATIVE ELEMENTS
======================================== */
.hero-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-decoration-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 70%
    );
    top: -250px;
    left: -150px;
    animation: gentleRotate 40s linear infinite;
    filter: blur(60px);
}

.hero-decoration-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 70%
    );
    bottom: -200px;
    right: -100px;
    animation: gentleRotate 50s linear infinite reverse;
    filter: blur(60px);
}

@keyframes gentleRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Floating Light Particles */
.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    animation: particleFloat 12s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    top: 25%;
    left: 20%;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    top: 65%;
    left: 75%;
    animation-delay: 3s;
}

.hero-particle:nth-child(3) {
    top: 45%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-25px) translateX(15px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-15px) translateX(-20px);
        opacity: 0.6;
    }
}

/* ========================================
   SOPHISTICATED ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content > * {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hero-badge {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.hero-title {
    animation-delay: 0.3s;
}

.hero-subtitle {
    animation-delay: 0.4s;
}

.hero-features {
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

.hero-feature-card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.hero-feature-card:nth-child(1) {
    animation-delay: 0.6s;
}

.hero-feature-card:nth-child(2) {
    animation-delay: 0.75s;
}

.hero-feature-card:nth-child(3) {
    animation-delay: 0.9s;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.938rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 4rem 0 2.5rem;
        min-height: 280px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-title::after {
        width: 40px;
        height: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.688rem;
        padding: 0.438rem 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-top: 2rem;
    }
    
    .hero-feature-card {
        padding: 1.5rem 1.25rem;
    }
    
    .hero-feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .hero-feature-icon i {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 3.5rem 0 2rem;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-subtitle {
        font-size: 0.813rem;
    }
    
    .hero-feature-card {
        padding: 1.25rem 1rem;
    }
    
    .hero-feature-icon {
        width: 44px;
        height: 44px;
    }
    
    .hero-feature-icon i {
        font-size: 1.25rem;
    }
    
    .hero-feature-title {
        font-size: 0.938rem;
    }
    
    .hero-feature-desc {
        font-size: 0.75rem;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {
    .page-hero::before,
    .hero-decoration-1,
    .hero-decoration-2,
    .hero-particle {
        animation: none;
    }
    
    .hero-feature-card:hover .hero-feature-icon i {
        transform: scale(1.15);
    }
}

/* Print Styles */
@media print {
    .page-hero {
        background: #0EA5E9;
        padding: 2rem 0;
        min-height: auto;
    }
    
    .page-hero::before,
    .page-hero::after,
    .hero-decoration,
    .hero-particle {
        display: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-feature-title,
    .hero-feature-desc {
        color: white;
    }
}

/* ========================================
   HERO GRID LAYOUT - Member Info Box
======================================== */

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-4xl);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

/* Member Info Box */
.member-info-box {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-3xl);
    padding: var(--space-3xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.8s ease-out;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* Login Prompt Overlay */
.member-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-info-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.member-info-prompt {
    text-align: center;
    padding: var(--space-2xl);
    animation: fadeInUp 0.6s ease-out;
}

.member-info-prompt i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.member-info-prompt h3 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.member-info-prompt p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.btn-prompt-login {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.btn-prompt-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4);
}

/* Member Info Content - Blurred when not logged in */
.member-info-content {
    transition: filter 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-info-content.blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Member Header */
.member-info-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid var(--gray-100);
}

.member-avatar {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.member-welcome {
    flex: 1;
}

.member-greeting {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.member-name {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

/* Member Info Body */
.member-info-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    flex: 1;
}

.member-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.member-info-item.highlight {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-sm) calc(var(--space-lg) * -1);
}

.member-info-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.member-info-label i {
    color: var(--primary);
    font-size: 1rem;
}

.member-info-value {
    font-size: var(--font-size-base);
    color: var(--gray-900);
    font-weight: 600;
    text-align: right;
    line-height: 1.6;
}

/* Badges */
.member-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-tier-badge[data-tier="BDS"] {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

.member-tier-badge[data-tier="BASIC"] {
    background: var(--gray-200);
    color: var(--gray-700);
}

.member-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.member-status-badge[data-status="ACTIVE"] {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.member-status-badge[data-status="EXPIRED"] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.member-status-badge[data-status="SUSPENDED"] {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.member-days-left {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-info-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-sm) 0;
}

/* Member Footer */
.member-info-footer {
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 2px solid var(--gray-100);
    position: relative;
    z-index: 100;
}

/* Member Info Box 안의 로그아웃 버튼 전용 스타일 */
.member-info-box .btn-logout {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
    z-index: 200 !important;
    pointer-events: auto !important;
}

.member-info-box .btn-logout i {
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
}

.member-info-box .btn-logout:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4) !important;
}

.member-info-box .btn-logout:hover i {
    transform: translateX(4px) !important;
}

.member-info-box .btn-logout:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* ========================================
   HERO STATS 높이 조정 (Member Info Box와 맞추기)
======================================== */

.hero-stats {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 2rem !important;
    gap: 2rem !important;
    background: white !important;
    border-radius: var(--radius-3xl) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    min-height: 400px !important;
    animation: fadeInUp 0.8s ease-out !important;
}

.hero-stat {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 1.5rem !important;
    flex: 1 !important;
    text-align: center !important;
}

.hero-stat-number {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 0.75rem !important;
    color: var(--primary) !important;
}

.hero-stat-label {
    font-size: 0.95rem !important;
    color: var(--gray-700) !important;
    text-align: center !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .hero-stats {
        min-height: 350px !important;
        padding: 1.75rem !important;
        gap: 1.5rem !important;
    }
    
    .hero-stat {
        padding: 1.25rem !important;
    }
    
    .hero-stat-number {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-2xl) !important;
        padding: 0 var(--space-md) !important;
    }
    
    .member-info-box {
        padding: var(--space-2xl) !important;
        max-width: 100% !important;
        min-height: auto !important;
    }
    
    .member-info-header {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .member-avatar {
        width: 56px !important;
        height: 56px !important;
        font-size: 2rem !important;
    }
    
    .member-name {
        font-size: var(--font-size-xl) !important;
    }

    .hero-stats {
        min-height: auto !important;
        flex-wrap: wrap !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
    }
    
    .hero-stat {
        flex: 1 1 45% !important;
        padding: 1rem !important;
    }
    
    .hero-stat-number {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-stat-label {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        padding: 0 !important;
    }
    
    .member-info-box {
        padding: var(--space-xl) !important;
    }
    
    .member-info-header {
        gap: var(--space-md) !important;
        margin-bottom: var(--space-xl) !important;
        padding-bottom: var(--space-md) !important;
    }
    
    .member-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.75rem !important;
    }
    
    .member-name {
        font-size: var(--font-size-lg) !important;
    }
    
    .member-info-prompt h3 {
        font-size: var(--font-size-xl) !important;
    }
    
    .member-info-prompt p {
        font-size: var(--font-size-sm) !important;
    }
    
    .member-info-box .btn-logout {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    .hero-stats {
        flex-direction: column !important;
        min-height: auto !important;
        padding: 1.25rem !important;
    }
    
    .hero-stat {
        flex: 1 1 100% !important;
        padding: 0.875rem !important;
    }
    
    .hero-stat-number {
        font-size: 1.875rem !important;
    }
    
    .hero-stat-label {
        font-size: 0.8125rem !important;
    }
}
