/**
 * Estilos oficiales para Golf Directo Hub - Villa de El Escorial
 */

.gd-hub-box {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #243324;
    margin: 20px 0 40px;
}

.gd-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #eef2ec;
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.gd-tab-btn {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d4ded3;
    color: #2d4a2d;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gd-tab-btn:hover {
    border-color: #2e7d32;
    color: #1b5e20;
}

.gd-tab-btn.active {
    background: #1e4620 !important;
    border-color: #1e4620 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(30, 70, 32, 0.25);
}

.gd-panel-content {
    background: #ffffff;
    border: 1px solid #e1e7e0;
    border-radius: 12px;
    padding: 24px;
    min-height: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
}

.gd-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #edf1ec;
    padding-bottom: 12px;
}

.gd-sub-btn {
    background: #f1f4f0;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #4a634a;
    cursor: pointer;
    transition: 0.2s ease;
}

.gd-sub-btn:hover {
    background: #e2ebe0;
}

.gd-sub-btn.active {
    background: #2e7d32 !important;
    color: #ffffff !important;
}

.gd-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.gd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.gd-table th {
    background: #f7f9f6;
    color: #1e4620;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 2px solid #dde5dc;
    white-space: nowrap;
}

.gd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #edf1ec;
    vertical-align: middle;
}

.gd-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.gd-row-clickable:hover {
    background: #f3f7f2 !important;
}

.gd-row-clickable.is-open {
    background: #eaf2e9 !important;
}

.gd-row-caret {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 0.75rem;
    color: #2e7d32;
    margin-left: 6px;
}

.gd-row-clickable.is-open .gd-row-caret {
    transform: rotate(180deg);
}

.gd-card-accordion {
    background: #fafbfa;
    border-bottom: 2px solid #c8d8c6;
    padding: 16px 20px !important;
}

.gd-card-box {
    background: #ffffff;
    border: 1px solid #dce5da;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #2e4d2e;
}

.gd-scorecard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.81rem;
}

.gd-scorecard-table th,
.gd-scorecard-table td {
    border: 1px solid #e2eae0;
    padding: 6px 4px;
    min-width: 28px;
    text-align: center;
}

.gd-scorecard-table th {
    background: #f1f5f0;
    color: #333;
    font-weight: 600;
}

.gd-cell-par {
    background: #fafafa;
    color: #666;
    font-weight: 500;
}

.gd-cell-score {
    font-weight: bold;
    color: #111;
    position: relative;
}

.gd-bonus-stars {
    display: block;
    font-size: 0.65rem;
    line-height: 1;
    color: #2e7d32;
    font-weight: 800;
    margin-bottom: 1px;
}

.gd-score-eagle {
    background: #fff8e1;
    color: #e65100;
    border: 1.5px solid #ffb300;
    border-radius: 50%;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 21px;
    font-weight: 800;
}

.gd-score-birdie {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    border-radius: 50%;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-weight: 800;
}

.gd-score-par {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    color: #222;
}

.gd-score-bogey {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffb74d;
    border-radius: 4px;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-weight: 700;
}

.gd-score-double {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
    border-radius: 4px;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    font-weight: 700;
}

.gd-badge-live {
    background: #e53935;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 4px;
    margin-left: 6px;
}

.gd-hcp-pill {
    display: inline-block;
    background: #eef5ee;
    color: #1e4620;
    border: 1px solid #c8dec8;
    padding: 3px 9px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.gd-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
    background: #f1f5f0;
    color: #243324;
    border: 1px solid #d4ded3;
}

.gd-team-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.gd-pos-medal-1 {
    background: #ffd700;
    color: #332b00;
    border-radius: 50%;
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-weight: 800;
    text-align: center;
}

.gd-pos-medal-2 {
    background: #e0e0e0;
    color: #333;
    border-radius: 50%;
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-weight: 800;
    text-align: center;
}

.gd-pos-medal-3 {
    background: #f0c8a0;
    color: #4a2c0a;
    border-radius: 50%;
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-weight: 800;
    text-align: center;
}

.gd-pdf-shortcut {
    background: #f4f8f4;
    border: 1px dashed #2e7d32;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.gd-btn-download {
    background: #1e4620;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gd-course-tee-card {
    background: #fbfdfb;
    border: 1px solid #dde5dc;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 22px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.gd-turn-header {
    background: #1e4620;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 22px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gd-stat-bar-bg {
    width: 100%;
    max-width: 180px;
    height: 8px;
    background: #edf1ec;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.gd-stat-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.gd-loader {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #5d745e;
    font-size: 0.95rem;
}

.gd-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #2e7d32;
    border-radius: 50%;
    animation: gd-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes gd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
