/*
Theme Name: Life Investment
Description: 라이프 인베스트먼트 테마 - 생활 꿀팁과 투자 철학, 추천 도서까지 종합 라이프 가이드를 제공하는 라이프스타일 플랫폼
Author: InvestPro Team
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles - matching original HTML */
.header {
    background: #1e293b;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #475569;
    border-radius: 25px;
    background: #334155;
    color: white;
    font-size: 14px;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    border: none;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #2563eb;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #3b82f6;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Stock Ticker Footer - matching original HTML */
.stock-ticker-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: white;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.ticker-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #3b82f6;
    white-space: nowrap;
}

.ticker-label i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.ticker-text {
    font-size: 0.9rem;
}

.ticker-content {
    flex: 1;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ticker-content::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.ticker-name {
    font-weight: 600;
    color: #cbd5e1;
}

.ticker-value {
    font-weight: 600;
    color: white;
}

.ticker-change {
    font-weight: 500;
}

.ticker-change.positive {
    color: #10b981;
}

.ticker-change.negative {
    color: #ef4444;
}

.ticker-time {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Main Content Styles */

/* Main Content Styles */
.main-content {
    background: white;
    margin: 20px;
    border-radius: 20px;
    padding: 60px 0;
    margin-bottom: 80px; /* Space for fixed footer ticker */
}

/* Life Investment Header */
.life-header {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #2d3748;
    padding: 3rem 0;
    text-align: center;
}

.life-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.life-header p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Life Content */
.life-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3182ce;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: #2c5aa0;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Content Tabs */
.content-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #ff9a9e;
    background: white;
    color: #ff9a9e;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #2d3748;
    border-color: #fecfef;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff9a9e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #ff9a9e;
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

.tip-description {
    color: #4a5568;
    line-height: 1.6;
}

/* Philosophy Quote */
.philosophy-quote {
    background: linear-gradient(135deg, #e6fffa, #f0fff4);
    border: 1px solid #81e6d9;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-author {
    color: #718096;
    font-weight: 600;
}

.quote-marks {
    position: absolute;
    font-size: 4rem;
    color: #81e6d9;
    opacity: 0.3;
}

.quote-marks.left {
    top: 0.5rem;
    left: 1rem;
}

.quote-marks.right {
    bottom: 0.5rem;
    right: 1rem;
}

/* Lifestyle Tips */
.lifestyle-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.lifestyle-card {
    background: linear-gradient(135deg, #fff5f5, #fed7e2);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #fbb6ce;
}

.lifestyle-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lifestyle-content {
    color: #4a5568;
    line-height: 1.6;
}

/* Book List */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.book-card:hover {
    border-color: #ff9a9e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-cover {
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    float: left;
    margin-right: 1rem;
}

.book-info {
    overflow: hidden;
}

.book-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.book-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    clear: both;
    margin-top: 1rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.stars {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        order: 3;
        margin: 0;
        max-width: 100%;
    }
    
    .nav-menu {
        order: 2;
        gap: 20px;
    }
    
    .ticker-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }
    
    .ticker-content {
        justify-content: center;
        gap: 20px;
    }
    
    .ticker-time {
        text-align: center;
    }
    
    .life-header h1 {
        font-size: 2rem;
    }
    
    .life-content {
        padding: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .lifestyle-tips {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .book-list {
        grid-template-columns: 1fr;
    }
    
    .book-cover {
        float: none;
        margin: 0 auto 1rem;
    }
    
    .book-info {
        text-align: center;
    }
    
    .book-description {
        clear: none;
        margin-top: 1rem;
        text-align: left;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-marks {
        font-size: 2.5rem;
    }
    
    .main-content {
        margin: 10px;
        margin-bottom: 120px; /* More space for mobile ticker */
    }
}

@media (max-width: 480px) {
    .life-header {
        padding: 2rem 0;
    }
    
    .life-header h1 {
        font-size: 1.8rem;
    }
    
    .life-content {
        padding: 0.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .tip-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .tip-title {
        font-size: 1.1rem;
    }
}