/**
 * Awards / Palmares Styles
 * Mirrors vet-records patterns with .award- prefix
 */

/* ===========================
   STATUS BADGES (count per type)
   =========================== */

.award-status-badges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.award-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--glp-border, #f0f0f0);
    background: var(--glp-card, #fff);
}

.award-status-badge i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.award-status-badge strong {
    display: block;
    font-size: 13px;
    color: var(--glp-text, #333);
    line-height: 1.2;
}

.award-status-badge small {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
}

.award-badge-has { border-left: 3px solid #FFD700; }
.award-badge-has small { color: #D97706; }
.award-badge-empty { border-left: 3px solid #E5E7EB; }

/* ===========================
   FILTER BAR
   =========================== */

.award-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glp-border, #f0f0f0);
}

.award-filter {
    padding: 8px 16px;
    border: 1px solid var(--glp-border, #e5e5e5);
    border-radius: 100px;
    background: var(--glp-card, #fff);
    color: var(--glp-text, #555);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.award-filter:hover {
    border-color: #D74709;
    color: #D74709;
}

.award-filter.active {
    background: #D74709;
    color: #fff;
    border-color: #D74709;
}

/* ===========================
   ACTIONS BAR
   =========================== */

.award-actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.award-btn-add {
    padding: 10px 20px;
    background: #D74709;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.award-btn-add:hover {
    background: #c03d07;
}

/* ===========================
   RECORDS LIST & CARDS
   =========================== */

.award-records-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.award-record-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--glp-card, #fff);
    border: 1px solid var(--glp-border, #f0f0f0);
    border-radius: 12px;
    transition: all 0.15s;
}

.award-record-card:hover {
    border-color: #D74709;
    box-shadow: 0 2px 8px rgba(215, 71, 9, 0.08);
}

.award-record-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.award-record-info {
    flex-grow: 1;
    min-width: 0;
}

.award-record-info strong {
    display: block;
    font-size: 15px;
    color: var(--glp-text, #111);
    margin-bottom: 2px;
}

.award-record-info span {
    font-size: 13px;
    color: #888;
}

.award-record-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.award-record-meta .award-record-date {
    font-size: 13px;
    color: var(--glp-text, #555);
    font-weight: 500;
}

.award-record-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.award-row-action {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--glp-border, #e5e5e5);
    background: var(--glp-card, #fff);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
    text-decoration: none;
}

.award-row-action:hover {
    color: #D74709;
    border-color: #D74709;
}

.award-row-action.award-delete:hover {
    color: #EF4444;
    border-color: #EF4444;
}

/* File indicator */
.award-file-indicator {
    color: #D74709;
    font-size: 14px;
    margin-left: 4px;
}

.award-public-indicator {
    color: #10B981;
    font-size: 12px;
    margin-left: 4px;
}

/* Icon backgrounds by type */
.award-icon-cac   { background: rgba(205,127,50,0.12); color: #CD7F32; }
.award-icon-cacib { background: rgba(192,192,192,0.2); color: #999; }
.award-icon-bob   { background: #EFF6FF; color: #3B82F6; }
.award-icon-bos   { background: #FDF2F8; color: #EC4899; }
.award-icon-bog   { background: #FFFBEB; color: #F59E0B; }
.award-icon-bis   { background: #FFFBEB; color: #D97706; }
.award-icon-other { background: #F3F4F6; color: #6B7280; }

/* ===========================
   MODAL (reuses vet-modal pattern)
   =========================== */

.award-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.award-modal {
    background: var(--glp-card, #fff);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: awardModalIn 0.2s ease-out;
}

@keyframes awardModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.award-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glp-border, #f0f0f0);
    position: sticky; top: 0;
    background: var(--glp-card, #fff);
    border-radius: 16px 16px 0 0;
    z-index: 2;
}

.award-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--glp-text, #111);
}

.award-modal-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--glp-bg, #f5f5f5);
    color: #555;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}

.award-modal-close:hover {
    background: var(--glp-border, #e5e5e5);
    color: #111;
}

.award-modal-body {
    padding: 24px;
}

.award-form-group {
    margin-bottom: 18px;
}

.award-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--glp-text, #333);
    margin-bottom: 6px;
}

.award-form-group input[type="text"],
.award-form-group input[type="date"],
.award-form-group select,
.award-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid var(--glp-border, #e5e5e5);
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--glp-text, #333);
    background: var(--glp-card, #fff);
    outline: none;
    transition: border-color 0.15s;
}

.award-form-group input:focus,
.award-form-group select:focus,
.award-form-group textarea:focus {
    border-color: #D74709;
    box-shadow: 0 0 0 3px rgba(215, 71, 9, 0.1);
}

.award-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* File upload (reuses vet pattern) */
.award-file-dropzone {
    border: 2px dashed var(--glp-border, #ddd);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--glp-bg, #fafafa);
}

.award-file-dropzone:hover { border-color: #D74709; background: rgba(215,71,9,0.02); }
.award-file-dropzone.dragging { border-color: #D74709; background: rgba(215,71,9,0.05); }
.award-file-dropzone i { font-size: 28px; color: #ccc; display: block; margin-bottom: 8px; }
.award-file-dropzone span { display: block; font-size: 14px; color: #666; margin-bottom: 4px; }
.award-file-dropzone small { font-size: 12px; color: #999; }

.award-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--glp-bg, #f5f5f5);
    border-radius: 10px;
    border: 1px solid var(--glp-border, #e5e5e5);
}

.award-file-preview i { font-size: 20px; color: #D74709; }
.award-file-preview span { flex-grow: 1; font-size: 13px; color: var(--glp-text, #333); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.award-file-remove {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: transparent; color: #999; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.award-file-remove:hover { background: #FEF2F2; color: #EF4444; }

/* Public toggle */
.award-public-toggle {
    padding-top: 10px;
    border-top: 1px solid var(--glp-border, #f0f0f0);
}

.award-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.award-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px; accent-color: #D74709; flex-shrink: 0;
}
.award-checkbox-label span { font-size: 14px; font-weight: 600; color: var(--glp-text, #333); }
.award-checkbox-label small { display: block; font-size: 12px; color: #888; margin-top: 2px; }

/* Feedback */
.award-form-feedback {
    padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; text-align: center; margin-top: 10px;
}
.award-form-feedback.success { background: #ECFDF5; color: #059669; }
.award-form-feedback.error { background: #FEF2F2; color: #DC2626; }

/* Footer */
.award-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--glp-border, #f0f0f0);
    position: sticky; bottom: 0;
    background: var(--glp-card, #fff);
    border-radius: 0 0 16px 16px;
}

.award-btn-cancel {
    padding: 10px 20px;
    border: 1px solid var(--glp-border, #e5e5e5);
    border-radius: 10px;
    background: var(--glp-card, #fff);
    color: var(--glp-text, #555);
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.award-btn-cancel:hover { background: var(--glp-bg, #f5f5f5); }

.award-btn-save {
    padding: 10px 24px;
    background: #D74709; color: #fff; border: none; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.15s;
}
.award-btn-save:hover { background: #c03d07; }
.award-btn-save:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===========================
   EMPTY STATE
   =========================== */

.award-empty-state {
    text-align: center;
    padding: 40px 30px;
    color: #888;
}

.award-empty-state i {
    font-size: 36px;
    color: #ddd;
    margin-bottom: 12px;
    display: block;
}

.award-empty-state p {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .award-form-row { grid-template-columns: 1fr; }
    .award-status-badges { grid-template-columns: repeat(3, 1fr); }
    .award-modal { max-height: 95vh; margin: 10px; border-radius: 14px; }
    .award-actions-bar { flex-direction: column; }
    .award-btn-add { justify-content: center; }
}

@media (max-width: 480px) {
    .award-status-badges { grid-template-columns: 1fr 1fr; }
    .award-filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
    .award-filter { white-space: nowrap; flex-shrink: 0; }
}
