/* ========================================
   WawaCoin Dark Modern Content Design
   기존 검정 테마 유지 + 모던한 컨텐츠 레이아웃
   ======================================== */

/* ========================================
   메인 컨텐츠 영역 레이아웃
   ======================================== */
body.with-sidebar {
    /* padding-left는 wawa-sidebar.css에서 처리 */
    background: #0c0c0c;
    min-height: 100vh;
}

.with-sidebar .container,
.with-sidebar .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 95px 30px 30px 30px; /* Top padding for menu bar */
    position: relative;
}

/* ========================================
   페이지 헤더 - 모던 스타일
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* ========================================
   컨텐츠 그리드 레이아웃
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.content-grid.full-width {
    grid-template-columns: 1fr;
}

/* ========================================
   모던 카드 디자인
   ======================================== */
.modern-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7931a, #ffb347);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modern-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card-badge {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.card-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ========================================
   차트 섹션 개선
   ======================================== */
.with-sidebar .chart-section {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.chart-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.chart-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-control-btn:hover {
    background: rgba(247, 147, 26, 0.1);
    border-color: rgba(247, 147, 26, 0.3);
    color: #f7931a;
}

.chart-control-btn.active {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    border-color: transparent;
}

/* ========================================
   지표 카드 개선
   ======================================== */
.with-sidebar .indicators-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.with-sidebar .indicator-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.with-sidebar .indicator-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7931a, transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.indicator-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indicator-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.indicator-change {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.indicator-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.indicator-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

/* ========================================
   테이블 스타일 개선
   ======================================== */
.with-sidebar .crypto-table {
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.with-sidebar .crypto-table thead {
    background: rgba(0, 0, 0, 0.4);
}

.with-sidebar .crypto-table th {
    padding: 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.with-sidebar .crypto-table td {
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.with-sidebar .crypto-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.with-sidebar .crypto-table tbody tr:hover {
    background: rgba(247, 147, 26, 0.05);
}

.coin-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.coin-symbol {
    font-weight: 600;
    color: #ffffff;
}

.coin-full-name {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* ========================================
   뉴스 카드 개선
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: rgba(247, 147, 26, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.news-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
}

.source-name {
    background: rgba(247, 147, 26, 0.1);
    color: #f7931a;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.news-date {
    color: rgba(255, 255, 255, 0.4);
}

.news-headline {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-snippet {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #f7931a;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   버튼 스타일
   ======================================== */
.btn-modern {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 147, 26, 0.3);
}

.btn-outline {
    background: transparent;
    color: #f7931a;
    border: 2px solid rgba(247, 147, 26, 0.3);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(247, 147, 26, 0.1);
    border-color: #f7931a;
}

/* ========================================
   로또 페이지 개선
   ======================================== */
.with-sidebar .lotto-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 30px; -- Handled by content-top-bar.css */
}

.ai-recommendations-section {
    margin-bottom: 40px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.recommendation-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.rank-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ========================================
   트레이딩 대시보드 개선
   ======================================== */
.with-sidebar .trading-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.trading-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.stat-value.profit {
    color: #4caf50;
}

.stat-value.loss {
    color: #f44336;
}

/* ========================================
   푸터 영역
   ======================================== */
.with-sidebar footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 80px;
    padding: 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 1024px) {
    body.with-sidebar {
        padding-left: 0;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}