/* 향상된 Technical Analysis 스타일 */
:root {
    /* Colors from comps.css or derived for consistency */
    --primary-color: #003366; /* Main accent from comps.css */
    --primary-light: #0055a4; /* Lighter variant of primary */
    --primary-dark: #002244;  /* Darker variant of primary */
    --secondary-color: #007bff; /* Link color from comps.css, as a secondary blue */
    --accent-color: #007bff;    /* Using link color as general accent */

    --text-color: #333333;       /* General text from comps.css */
    --text-light: #666666;     /* Muted text from comps.css */
    --text-dark: #1a1a1a;        /* Very dark gray for high contrast text */

    --background-color: #f0f2f5; /* Main background from comps.css */
    --card-color: #ffffff;         /* Card/container background from comps.css */
    --border-color: #e1e4e8;     /* Border color from comps.css */

    /* Semantic colors - kept from original stock.css as comps.css has no direct equivalents */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #007bff;         /* Link color from comps.css for info state */

    /* UI properties from original stock.css */
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08); /* Shadow similar to comps.css container */
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body.dark {
    /* Derived dark theme consistent with comps.css light theme aesthetic */
    --primary-color: #5fa8ff;    /* Brighter blue for dark mode primary, e.g. similar to #007bff but lighter */
    --primary-light: #8bc0ff;   /* Lighter variant */
    --primary-dark: #2a7fff;     /* Darker variant */
    --secondary-color: #8bc0ff;   /* Brighter secondary */
    --accent-color: #8bc0ff;      /* Brighter accent */

    --text-color: #e2e8f0;       /* Light gray for text */
    --text-light: #94a3b8;     /* Medium gray for muted text */
    --text-dark: #f8fafc;        /* Almost white for high contrast text elements */

    --background-color: #0b132b; /* Very dark desaturated blue */
    --card-color: #1c2541;         /* Dark blue/gray, lighter than background */
    --border-color: #3a506b;     /* Medium dark gray/blue for borders */

    /* Semantic colors for dark mode - brightened versions */
    --success-color: #34d399; 
    --warning-color: #facc15;
    --danger-color: #f87171;
    --info-color: #8bc0ff; 
}

/* Getting Started Tips 스타일 */
.tips-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.tips-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-card {
    display: flex;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.tip-content {
    flex-grow: 1;
}

.tip-content p {
    margin: 0;
    line-height: 1.5;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Learn More About Technical Analysis 스타일 */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.resource-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
}

.resource-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.resource-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.resource-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.resource-body p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.resource-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.resource-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.resource-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--primary-dark);
}

.resource-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.resource-link:hover i {
    transform: translateX(3px);
}

/* 다크 모드 스타일 */
body.dark .tip-card {
    border-left-color: var(--primary-light);
}

body.dark .resource-header {
    background-color: var(--primary-dark);
}

body.dark .resource-features li i {
    color: var(--success-color);
}

/* 패널 헤더 스타일 */
.panel-header {
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.panel-header .helper-text {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* 지표 그리드 레이아웃 */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 지표 카드 스타일 */
.indicator-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 지표 헤더 스타일 */
.indicator-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background-color: rgba(37, 99, 235, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.header-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
}

.header-content h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

.indicator-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 3px;
}

.indicator-toggle {
    margin-left: 15px;
}

/* 지표 내용 스타일 */
.indicator-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.indicator-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.key-points-container {
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.key-points-container h4 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-key-points {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.indicator-key-points li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.indicator-key-points li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.indicator-key-points li:last-child {
    margin-bottom: 0;
}

.indicator-key-points li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* 이미지 플레이스홀더 개선 */
.image-placeholder {
    background-color: rgba(37, 99, 235, 0.05);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    text-align: center;
    margin-bottom: 15px;
}

.image-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.image-placeholder span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 학습 모드 탭 스타일 */
.learning-mode-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.mode-tab {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.mode-tab:hover {
    color: var(--primary-color);
}

.mode-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mode-tab i {
    margin-right: 8px;
}

/* 다크 모드 조정 */
body.dark .indicator-header {
    background-color: rgba(59, 130, 246, 0.1);
}

body.dark .key-points-container {
    background-color: rgba(59, 130, 246, 0.1);
}

body.dark .header-icon {
    background-color: var(--primary-dark);
}

body.dark .header-content h3 {
    color: var(--text-color);
}

body.dark .image-placeholder {
    background-color: rgba(59, 130, 246, 0.08);
    border-color: var(--border-color);
}

/* 스위치 스타일 개선 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 학습 링크 스타일 */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.learn-more-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.learn-more-link i {
    font-size: 0.8rem;
}
