/* 
 * 3-Column Layout for Single Hibu Page (Desktop)
 * Fallback to 1-column on Mobile
 */

.product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
}

.hibu-col-main,
.hibu-col-center,
.hibu-col-right {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.hibu-col-center,
.hibu-col-right {
    background: rgba(0, 0, 0, 0.02);
}

@media (min-width: 992px) {
    .product-detail-layout {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: flex-start;
    }

    .hibu-col-center,
    .hibu-col-right {
        position: sticky;
        top: 60px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* DCS Panel & Utilities */
.single-dcs-panel {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.08), rgba(250, 204, 21, 0.03));
}

.single-dcs-head {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-dcs-select {
    width: 100%;
    /* max-width: 320px; */
    background: #facc15;
    color: #3f2d00;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    padding: 8px 12px;
}

.single-dcs-msg {
    font-size: 12px;
    margin-top: 8px;
    color: var(--text-secondary);
}

/* Buttons */
.single-dcs-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-top: 10px;
}

.single-dcs-btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all .2s ease;
    cursor: pointer;
}

.single-dcs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-dcs-btn-edit {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}

.single-dcs-btn-share {
    background: #16a34a;
    color: #fff;
}

.single-dcs-btn-save {
    background: #2563eb;
    color: #fff;
}

.single-dcs-btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Cards */
.single-dcs-card-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.single-dcs-card-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

/* Fields & Grid */
.single-dcs-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.single-dcs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.single-dcs-field label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
}

.single-dcs-input {
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all .2s;
}

.single-dcs-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.1);
}

/* Plate */
.single-dcs-plate-container {
    display: flex;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
    margin-top: 10px;
}

.single-dcs-plate-tr {
    background: #003399;
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-dcs-plate-input {
    flex: 1;
    border: none;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: #111;
    text-transform: uppercase;
    outline: none;
    background: transparent;
}

/* Driver Avatar */
.single-dcs-driver-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.single-dcs-driver-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.single-dcs-driver-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stars */
.single-dcs-stars-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.single-dcs-star {
    font-size: 20px;
    color: #cbd5e1;
    transition: color .2s;
    cursor: pointer;
}

.single-dcs-star.filled {
    color: #f59e0b;
}

.single-dcs-star:hover {
    color: #fbbf24;
}

/* Share Tool */
.single-dcs-share-btn {
    width: 40px;
    height: 40px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: transform 0.2s;
}

.single-dcs-share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Score Modal */
.single-score-modal {
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(6px);
}

.single-score-modal .modal-dialog {
    max-height: calc(100vh - 60px);
    margin: 1.75rem auto !important;
}

.single-score-modal .modal-content {
    border-radius: 16px;
    border: none;
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
}

.single-score-modal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.single-score-modal .row {
    display: flex;
    align-items: stretch;
}

.single-score-modal .col-md-6 {
    display: flex;
    flex-direction: column;
}

.single-score-modal .modal-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 116, 144, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.single-score-modal .modal-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--text-primary);
}

.single-score-close-btn {
    background: rgba(15, 23, 42, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: background .2s;
}

.single-score-close-btn:hover {
    background: rgba(15, 23, 42, 0.2);
}

.single-score-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
}

.single-score-history {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.single-score-historyItem {
    padding: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.single-score-historyItem:last-child {
    border-bottom: none;
}

.single-score-historyItem .date {
    font-size: 10px;
    color: var(--text-secondary);
}

.single-score-historyItem .head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.single-score-actions {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.single-score-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.single-score-btn.cancel {
    background: #e2e8f0;
    color: #475569;
}

.single-score-btn.save {
    background: #3b82f6;
    color: #fff;
}

.single-dcs-content-editor {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
}

/* Mobile Media Queries */
@media (max-width: 991px) {
    .product-detail-media .media-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .product-detail-media .media-grid {
        column-count: 1;
    }

    .single-dcs-fields-grid {
        grid-template-columns: 1fr;
    }
}

/* Detail Info Card Styles */
.single-dcs-detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
}

.single-dcs-btn-detail {
    background: #4f46e5;
    color: #fff;
    margin-top: 10px;
}

.single-dcs-btn-driver-share {
    background: #25d366;
    color: #fff;
    margin-top: 10px;
}

/* Hide bottom navbar on single post page */
.bottom-navbar {
    display: none !important;
}