/* Learn Page Specific Styles */
.learn-header {
    text-align: center;
    margin: 100px 0 50px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.learn-title {
    font-size: 3em;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.learn-subtitle {
    color: var(--text-glow);
    font-size: 1.3em;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.learn-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.learn-card:hover {
    transform: translateY(-10px);
    border-color: var(--wave-trough);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.learn-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    font-size: 2.5em;
    color: var(--wave-trough);
    margin-bottom: 20px;
}

.learn-card h3 {
    color: var(--text-light);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.learn-card p {
    color: var(--text-glow);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-glow);
    font-size: 0.9em;
    opacity: 0.7;
}

.card-meta i {
    color: var(--wave-mid);
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .learn-title {
        font-size: 2em;
    }
    
    .learn-grid {
        grid-template-columns: 1fr;
    }
}

/* Learn Page Styles */
.learn-article {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 40px;
    margin: 100px 0 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-glow);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h2 {
    color: var(--wave-trough);
    margin: 40px 0 20px;
    font-size: 1.8em;
}

.article-content h3 {
    color: var(--wave-mid);
    margin: 30px 0 15px;
    font-size: 1.4em;
}

.info-box, .tip-box, .warning-box {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--wave-trough);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-box {
    background: rgba(247, 147, 26, 0.1);
    border-left-color: var(--wave-mid);
}

.warning-box {
    background: rgba(255, 46, 99, 0.1);
    border-left-color: var(--wave-peak);
}

.info-box i, .tip-box i, .warning-box i {
    font-size: 1.5em;
    margin-top: 2px;
}

.confidence-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.level {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-badge.high { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.level-badge.medium { background: rgba(255, 193, 7, 0.2); color: #FFC107; }
.level-badge.low { background: rgba(244, 67, 54, 0.2); color: #F44336; }

.cta-box {
    text-align: center;
    background: linear-gradient(45deg, rgba(0,212,255,0.1), rgba(156,39,176,0.1));
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--wave-trough), #9c27b0);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,212,255,0.3);
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--wave-trough);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

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

.path-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.path-card.beginner { border-top: 4px solid #4CAF50; }
.path-card.intermediate { border-top: 4px solid #FFC107; }
.path-card.advanced { border-top: 4px solid #F44336; }

.path-card ul {
    list-style: none;
    padding-left: 0;
}

.path-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.confluence-table, .position-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.confluence-table th, .position-table th {
    background: rgba(0, 212, 255, 0.2);
    padding: 15px;
    text-align: left;
}

.confluence-table td, .position-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.strategy-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.strategy-card.advanced {
    border-left: 4px solid #9c27b0;
}

.strategy-tags {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.tag {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
}

.tag.risk-low { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.tag.risk-medium { background: rgba(255, 193, 7, 0.2); color: #FFC107; }
.tag.risk-high { background: rgba(244, 67, 54, 0.2); color: #F44336; }
.tag.winrate { background: rgba(33, 150, 243, 0.2); color: #2196F3; }

/* ===== FIX: Cải thiện khả năng đọc cho articles ===== */

/* Tiêu đề chính */
.learn-title {
    color: #ffffff !important;  /* Màu trắng */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.learn-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;  /* Trắng mờ */
}

/* Card titles */
.learn-card h3 {
    color: #ffffff !important;  /* Trắng */
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Card description text */
.learn-card p {
    color: rgba(255, 255, 255, 0.9) !important;  /* Trắng mờ */
    line-height: 1.6;
    font-size: 0.95em;
}

/* Card meta info (thời gian đọc, level) */
.card-meta {
    color: rgba(255, 255, 255, 0.8) !important;  /* Trắng mờ hơn */
}

.card-meta i {
    color: #00d4ff !important;  /* Giữ màu xanh cho icon */
    margin-right: 5px;
}

/* Level badges */
.card-meta span:last-child {
    background: rgba(0, 212, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    color: #00d4ff !important;  /* Màu xanh cho level */
    font-weight: 600;
}

/* Icons trong card */
.card-icon i {
    color: #00d4ff !important;  /* Giữ màu xanh cho icon */
    font-size: 2.5em;
    opacity: 0.9;
}

/* Hover effects */
.learn-card:hover h3 {
    color: #00d4ff !important;  /* Đổi màu khi hover */
    transition: color 0.3s ease;
}

.learn-card:hover p {
    color: #ffffff !important;
}

/* Latest Market Analysis section */
.recent-posts h2 {
    color: #ffffff !important;
    font-size: 1.8em;
    margin-bottom: 25px;
}

.recent-posts h2 i {
    color: #00d4ff;
}

.post-item h4 a {
    color: #00d4ff !important;  /* Màu xanh cho link */
    font-weight: 600;
    text-decoration: none;
}

.post-item p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.post-meta {
    color: rgba(255, 255, 255, 0.7) !important;
}

.post-meta i {
    color: #f7931a;  /* Màu cam cho icon calendar */
}

/* ===== FIX: MÀU CHỮ CHO ARTICLES ===== */

/* Tiêu đề articles - màu trắng */
.learn-card h3 {
    color: #ffffff !important;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Mô tả articles - màu trắng mờ */
.learn-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Meta info (thời gian đọc, level) */
.card-meta {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Icon trong meta */
.card-meta i {
    color: #00d4ff !important;  /* Giữ màu xanh cho icon */
    margin-right: 5px;
}

/* Level badge (Beginner, Intermediate, etc) */
.card-meta span:last-child {
    background: rgba(0, 212, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    color: #00d4ff !important;
    font-weight: 600;
}

/* Icon chính trong card */
.card-icon i {
    color: #00d4ff !important;
    font-size: 2.5em;
    opacity: 0.9;
}

/* Hiệu ứng hover */
.learn-card:hover h3 {
    color: #00d4ff !important;  /* Đổi màu khi hover */
    transition: color 0.3s ease;
}

.learn-card:hover p {
    color: #ffffff !important;
}
