/* ==========================================
   DỰ ĐOÁN XỔ SỐ - Frontend CSS
   ========================================== */

/* Tab điều hướng */
.dd-tab {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 15px;
    text-decoration: none !important;
}
.dd-tab:hover {
    opacity: 0.85;
}
.dd-tab.active {
    background: rgba(255,255,255,0.2);
    font-weight: 700;
}
.dd-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: #fff;
    border-radius: 3px 3px 0 0;
}

/* Breadcrumb */
.dd-breadcrumb {
    font-size: 13px;
    color: #666;
    padding: 5px 0;
}
.dd-breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
}
.dd-breadcrumb a:hover {
    text-decoration: underline;
}
.dd-breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* Nội dung dự đoán */
.du-doan-body {
    line-height: 1.8;
    font-size: 15px;
}
.du-doan-body h3 {
    color: #1a5276;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f39c12;
}
.du-doan-body h4 {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 15px;
}
.du-doan-body h5 {
    color: #2c3e50;
    font-size: 15px;
    margin-top: 10px;
}
.du-doan-body .table {
    font-size: 14px;
    margin-bottom: 15px;
}
.du-doan-body .table td {
    padding: 10px 15px;
    background: #fff9e6;
    border-color: #f5c17b;
}
.du-doan-body .table tr:hover td {
    background: #fff3cd;
}

/* Pascal */
.pascal-table-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0 15px;
    text-align: center;
    border: 1px solid #dee2e6;
}
.pascal-row-dd {
    margin: 4px 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.pascal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Danh sách bài dự đoán */
.dd-list-posts {
    padding: 0;
}
.dd-post-item {
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}
.dd-post-item:last-child {
    border-bottom: none;
}
.dd-post-item:hover {
    background: #f8f9fa;
}
.dd-post-item a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    gap: 12px;
}

/* Card-style post item with thumbnail */
.dd-post-item-card a {
    align-items: flex-start;
    padding: 12px 15px;
    gap: 15px;
}
.dd-post-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.dd-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dd-post-item-card:hover .dd-post-thumb img {
    transform: scale(1.05);
}
.dd-post-info {
    flex: 1;
    min-width: 0;
}
.dd-post-date {
    background: linear-gradient(135deg, #f89d3c, #e67e22);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 15px;
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 4px;
}
.dd-post-title {
    font-size: 15px;
    color: #1a5276;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dd-post-item:hover .dd-post-title {
    color: #e74c3c;
}
.dd-post-des {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Phân trang */
.dd-pagination {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px !important;
}
.dd-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background: #f1f1f1;
    transition: all 0.2s;
}
.dd-page-link:hover {
    background: #e2e2e2;
    color: #000;
}
.dd-page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(102,126,234,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .dd-tab {
        font-size: 12px;
        padding: 8px 10px;
    }
    .dd-post-item a {
        padding: 8px 12px;
        gap: 8px;
    }
    .dd-post-thumb {
        width: 90px;
        height: 60px;
    }
    .dd-post-date {
        font-size: 10px;
        padding: 2px 7px;
    }
    .dd-post-title {
        font-size: 13px;
    }
    .dd-post-des {
        display: none;
    }
    .pascal-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .du-doan-body h3 {
        font-size: 16px;
    }
}

