/* ===== DÁ GÀ SCHEDULE PRO – FRONTEND ===== */

/* Wrapper */
.dgsp-wrapper,
.dgsp-full-wrapper,
.dgsp-archive-wrapper,
.dgsp-arena-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* Header */
.dgsp-header {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #f39c12 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dgsp-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.dgsp-date-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.95;
}

/* Table */
.dgsp-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dgsp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
}

.dgsp-table thead {
    background: #2c3e50;
    color: #fff;
}

.dgsp-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.dgsp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.dgsp-table tbody tr:hover {
    background: #f8f9fa;
}

.dgsp-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Row Status Colors */
.dgsp-row-live {
    background: #fff3cd !important;
    animation: dgsp-pulse 2s infinite;
}

.dgsp-row-completed {
    opacity: 0.7;
}

@keyframes dgsp-pulse {
    0%, 100% { background: #fff3cd; }
    50% { background: #ffeaa7; }
}

/* Badges */
.dgsp-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dgsp-badge-upcoming {
    background: #d4edda;
    color: #155724;
}

.dgsp-badge-live {
    background: #f8d7da;
    color: #c0392b;
    animation: dgsp-blink 1.5s infinite;
}

@keyframes dgsp-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.dgsp-badge-completed {
    background: #e2e3e5;
    color: #383d41;
}

.dgsp-badge-cancelled {
    background: #f5c6cb;
    color: #721c24;
}

/* Code Badge */
.dgsp-code-badge {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

/* BLV */
.dgsp-blv-yes { color: #27ae60; font-weight: 600; }
.dgsp-blv-no { color: #999; }

/* Location */
.dgsp-location {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

/* Footer */
.dgsp-footer-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px 20px;
}

.dgsp-update-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px 0;
}

.dgsp-keyword-text {
    font-size: 14px;
    color: #444;
    margin: 0;
    font-weight: 500;
}

/* No Schedule */
.dgsp-no-schedule {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    color: #666;
}

/* ===== FULL PAGE LAYOUT ===== */

.dgsp-full-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #f39c12 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
}

.dgsp-full-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
}

.dgsp-full-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Filter Tabs */
.dgsp-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.dgsp-tab {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.dgsp-tab:hover {
    border-color: #3498db;
    color: #3498db;
}

.dgsp-tab-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* Cards Grid */
.dgsp-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dgsp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dgsp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dgsp-card-live {
    border-color: #c0392b;
    border-width: 2px;
}

.dgsp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dgsp-card-code {
    background: #2c3e50;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.dgsp-card-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.dgsp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dgsp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.dgsp-meta-icon { font-size: 16px; }

.dgsp-card-notes {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

/* SEO Content Block */
.dgsp-seo-content,
.dgsp-seo-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    line-height: 1.8;
    margin-top: 20px;
}

.dgsp-seo-content h2,
.dgsp-seo-content h3,
.dgsp-seo-block h2,
.dgsp-seo-block h3 {
    color: #c0392b;
    margin-top: 20px;
}

.dgsp-seo-content h2:first-child,
.dgsp-seo-block h2:first-child {
    margin-top: 0;
}

/* FAQ */
.dgsp-faq {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.dgsp-faq h3 { color: #c0392b; }

.dgsp-faq-item {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #c0392b;
}

.dgsp-faq-item h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #1a1a2e;
}

.dgsp-faq-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Archive */
.dgsp-archive-title {
    font-size: 22px;
    color: #1a1a2e;
}

.dgsp-archive-day {
    margin-bottom: 20px;
}

.dgsp-archive-day h3 {
    color: #c0392b;
    font-size: 16px;
    margin-bottom: 8px;
}

.dgsp-table-sm { font-size: 13px; }

/* Arena Single */
.dgsp-arena-wrapper h2 {
    color: #c0392b;
    font-size: 22px;
}

.dgsp-arena-info .dgsp-table th {
    width: 140px;
    background: #f8f9fa;
    color: #1a1a2e;
}

/* No Data */
.dgsp-no-data {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .dgsp-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .dgsp-title { font-size: 17px; }

    .dgsp-full-title { font-size: 20px; }

    .dgsp-table { font-size: 12px; }
    .dgsp-table th,
    .dgsp-table td { padding: 8px 6px; }

    .dgsp-cards-grid {
        grid-template-columns: 1fr;
    }

    .dgsp-filter-tabs {
        gap: 4px;
    }

    .dgsp-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .dgsp-seo-content,
    .dgsp-seo-block {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .dgsp-th-type,
    .dgsp-td-type,
    .dgsp-th-blv,
    .dgsp-td-blv {
        display: none;
    }
}

/* ===== DETAILED MATCH VIEW ===== */

.dgsp-detailed-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Arena Block */
.dgsp-arena-block {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dgsp-arena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #2c3e50;
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}

.dgsp-arena-header-live {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    animation: dgsp-pulse-bg 2s infinite;
}

@keyframes dgsp-pulse-bg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.dgsp-arena-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dgsp-arena-code-lg {
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.dgsp-arena-name-lg {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
}

.dgsp-arena-meta-row {
    display: flex;
    gap: 14px;
    font-size: 13px;
    opacity: 0.9;
}

/* BLV Bar */
.dgsp-blv-bar {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    background: #34495e;
    color: #ecf0f1;
    font-size: 13px;
    flex-wrap: wrap;
}

.dgsp-blv-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dgsp-blv-icon { font-size: 16px; }

/* Matches Table */
.dgsp-matches-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dgsp-matches-table { font-size: 13px; }

.dgsp-matches-table thead {
    background: #f1f3f5;
    color: #2c3e50;
}

.dgsp-matches-table th {
    padding: 10px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    white-space: nowrap;
    color: #495057;
}

.dgsp-matches-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}

/* Match Row Status */
.dgsp-match-live {
    background: #fff3cd !important;
    animation: dgsp-pulse 2s infinite;
}

.dgsp-match-completed { opacity: 0.85; }

.dgsp-match-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e9ecef;
    border-radius: 50%;
    font-weight: 700;
    font-size: 12px;
    color: #495057;
}

.dgsp-match-live .dgsp-match-num {
    background: #c0392b;
    color: #fff;
}

/* Type Badges */
.dgsp-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.dgsp-type-cua-sat {
    background: #d4edda;
    color: #155724;
}

.dgsp-type-cua-dao {
    background: #f8d7da;
    color: #721c24;
}

.dgsp-type-ga-tre {
    background: #d1ecf1;
    color: #0c5460;
}

.dgsp-type-ga-don {
    background: #e2e3e5;
    color: #383d41;
}

/* Fighter Display */
.dgsp-fighter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dgsp-fighter-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.dgsp-fighter strong {
    display: block;
    font-size: 13px;
    color: #1a1a2e;
}

.dgsp-fighter small {
    display: block;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

/* Results */
.dgsp-result {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dgsp-result-meron {
    background: #fde8e8;
    color: #c0392b;
}

.dgsp-result-wala {
    background: #dbeafe;
    color: #1e40af;
}

.dgsp-result-draw {
    background: #fef3cd;
    color: #856404;
}

.dgsp-duration {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

/* ===== LIVE PAGE ===== */

.dgsp-live-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.dgsp-live-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 50%, #f39c12 100%);
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.dgsp-live-title {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 800;
}

.dgsp-live-date {
    margin: 0 0 20px 0;
    font-size: 15px;
    opacity: 0.9;
}

.dgsp-live-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.dgsp-live-stat {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 80px;
}

.dgsp-live-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
}

.dgsp-live-stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.dgsp-live-stat-hot {
    background: rgba(231, 76, 60, 0.5);
    animation: dgsp-blink 1.5s infinite;
}

/* Quick Nav */
.dgsp-live-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    overflow-x: auto;
}

.dgsp-live-nav-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    white-space: nowrap;
}

.dgsp-live-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    color: #555;
    background: #fff;
    transition: all 0.2s;
    white-space: nowrap;
}

.dgsp-live-nav-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.dgsp-live-nav-live {
    border-color: #c0392b;
    background: #fde8e8;
    color: #c0392b;
}

.dgsp-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #c0392b;
    border-radius: 50%;
    animation: dgsp-blink 1s infinite;
}

/* Mobile Responsive for Detailed */
@media (max-width: 768px) {
    .dgsp-arena-header {
        padding: 12px 14px;
    }
    .dgsp-arena-code-lg {
        font-size: 14px;
        padding: 6px 10px;
    }
    .dgsp-arena-name-lg { font-size: 14px; }
    .dgsp-arena-meta-row { font-size: 11px; gap: 8px; }
    .dgsp-blv-bar { padding: 8px 14px; font-size: 12px; }
    .dgsp-matches-table { font-size: 11px; }
    .dgsp-matches-table th,
    .dgsp-matches-table td { padding: 6px 4px; }
    .dgsp-fighter small { display: none; }
    .dgsp-col-weight,
    .dgsp-col-blv { display: none; }

    .dgsp-live-title { font-size: 20px; }
    .dgsp-live-stats { gap: 12px; }
    .dgsp-live-stat { padding: 8px 14px; }
    .dgsp-live-stat-num { font-size: 22px; }
}
