/* ========================================
   박두환 투자 커뮤니티 - 스타일시트
   ======================================== */

/* CSS Variables */
:root {
    --cold-gray: #8D8D92;
    --ginkgo-gold: #C9B28E;
    --light-gray: #EDEDED;
    --dark-bg: #1A1A1D;
    --text-dark: #2C2C2E;
    --text-light: #F5F5F5;
    --accent-gradient: linear-gradient(135deg, #C9B28E 0%, #A89060 100%);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.18);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Gowun Dodum', sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }

p {
    font-size: 1rem;
    color: var(--cold-gray);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   실시간 참여 알림 (Notification Bubble)
   ======================================== */
.notification-bubble {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease-out;
    border-left: 3px solid var(--ginkgo-gold);
    max-width: 320px;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.notification-bubble.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-bubble .avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-bubble .content {
    flex: 1;
}

.notification-bubble .user-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.notification-bubble .action {
    font-size: 0.8rem;
    color: var(--cold-gray);
}

.notification-bubble .time {
    font-size: 0.75rem;
    color: var(--ginkgo-gold);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    background: url(../images/bgc.png) no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animated Grid Background */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(201, 178, 142, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 178, 142, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ginkgo-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 40%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; top: 60%; animation-delay: 2s; }
.particle:nth-child(4) { left: 50%; top: 30%; animation-delay: 3s; }
.particle:nth-child(5) { left: 70%; top: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: 5s; }
.particle:nth-child(7) { left: 90%; top: 25%; animation-delay: 6s; }
.particle:nth-child(8) { left: 15%; top: 80%; animation-delay: 7s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.hero-inner {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 178, 142, 0.1);
    border: 1px solid rgba(201, 178, 142, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    color: var(--ginkgo-gold);
    font-size: 0.9rem;
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--ginkgo-gold);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--ginkgo-gold);
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Profile Card */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 178, 142, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 20px 40px rgba(201, 178, 142, 0.3);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.profile-info .role {
    color: var(--ginkgo-gold);
    font-size: 1rem;
    margin-bottom: 16px;
}

.profile-info .bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.profile-tag {
    background: rgba(201, 178, 142, 0.15);
    border: 1px solid rgba(201, 178, 142, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--ginkgo-gold);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
   Stock Ticker
   ======================================== */
.stock-ticker {
    background: #1A1A1D;
    border-top: 1px solid rgba(201, 178, 142, 0.2);
    border-bottom: 1px solid rgba(201, 178, 142, 0.2);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    white-space: nowrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.ticker-item .symbol {
    font-weight: 500;
    color: var(--ginkgo-gold);
}

.ticker-item .price {
    color: var(--text-light);
}

.ticker-item .change {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ticker-item .change.up {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.ticker-item .change.down {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(201, 178, 142, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 178, 142, 0.45);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--ginkgo-gold);
    color: var(--ginkgo-gold);
}

.btn-secondary:hover {
    background: rgba(201, 178, 142, 0.1);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ginkgo-gold);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--cold-gray);
}

/* ========================================
   Benefits Section (Left-Right Layout)
   ======================================== */
.benefits-section {
    background: white;
}

.benefit-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.benefit-row:last-child {
    margin-bottom: 0;
}

.benefit-row.reverse {
    direction: rtl;
}

.benefit-row.reverse > * {
    direction: ltr;
}

.benefit-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--light-gray) 0%, #E0E0E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-image .placeholder-icon {
    font-size: 4rem;
    color: var(--ginkgo-gold);
    opacity: 0.5;
}

.benefit-content h3 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.benefit-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-list li i {
    color: var(--ginkgo-gold);
    margin-top: 4px;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    background: var(--dark-bg);
    color: var(--text-light);
}

.features-section .section-title {
    color: var(--text-light);
}

.features-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 178, 142, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(201, 178, 142, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    color: var(--ginkgo-gold);
    opacity: 0.2;
}

.testimonial-content {
    margin-bottom: 24px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.testimonial-info .name {
    font-weight: 500;
    color: var(--text-dark);
}

.testimonial-info .role {
    font-size: 0.85rem;
    color: var(--cold-gray);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2C2C2E 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(201, 178, 142, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-bg);
    padding: 40px 0 120px;
    text-align: center;
    border-top: 1px solid rgba(201, 178, 142, 0.1);
}

.footer p {
    color: var(--cold-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-links a {
    color: var(--cold-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--ginkgo-gold);
}

/* ========================================
   Fixed Bottom CTA
   ======================================== */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 16px 20px;
    z-index: 999;
}

.fixed-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.fixed-cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.fixed-cta .btn {
    padding: 14px 28px;
    white-space: nowrap;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 60px 20px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 24px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-tags {
        justify-content: center;
    }
    
    .benefit-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefit-row.reverse {
        direction: ltr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .notification-bubble {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .fixed-cta-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .fixed-cta-text {
        display: none;
    }
    
    .fixed-cta .btn {
        width: 100%;
        max-width: 320px;
    }
    
    .footer {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(201, 178, 142, 0.35); }
    50% { box-shadow: 0 8px 40px rgba(201, 178, 142, 0.55); }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   Modal Styles
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: var(--dark-bg);
    color: var(--text-light);
    border-bottom: 2px solid var(--ginkgo-gold);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin: 0;
}

.modal-header h3 i {
    color: var(--ginkgo-gold);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--cold-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    color: var(--text-dark);
    line-height: 1.8;
}

.modal-body h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--light-gray);
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--cold-gray);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.modal-body ul {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--cold-gray);
}

.modal-body ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-body ul ul {
    margin-top: 8px;
}

.modal-date {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    text-align: right;
    font-size: 0.85rem;
    color: var(--cold-gray);
}

/* Disclaimer specific styles */
.disclaimer-warning {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 1px solid #FFB74D;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.disclaimer-warning i {
    font-size: 1.5rem;
    color: #F57C00;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-warning p {
    margin: 0;
    color: #E65100;
}

.disclaimer-agreement {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.disclaimer-agreement p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }
    
    .modal-body h4 {
        font-size: 1rem;
    }
}

