/**
 * DKP Rendszer CSS
 * Dragon Kill Points táblázat és history stílusok
 */

/* ============================================
   DKP CONTAINER
   ============================================ */

.dkp-container {
    padding: 20px;
}

.dkp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.dkp-header h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin: 0;
}

.dkp-actions {
    display: flex;
    gap: 10px;
}

/* Keresés mező */
.dkp-search {
    margin-bottom: 20px;
}

.dkp-search input {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dkp-search input:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.dkp-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-sync,
.btn-history {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sync {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sync:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-history {
    background: rgba(75, 85, 99, 0.9);
    color: #fff;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.btn-history:hover {
    background: rgba(107, 114, 128, 1);
    border-color: rgba(156, 163, 175, 0.5);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.4);
    transform: translateY(-2px);
}

/* ============================================
   DKP TABLE
   ============================================ */

.dkp-table-container {
    overflow-x: auto;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 20px;
}

.dkp-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.dkp-table thead {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.dkp-table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dkp-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.dkp-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.dkp-table td {
    padding: 12px 15px;
    font-size: 15px;
}

.dkp-table .dkp-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-align: center;
}

.dkp-table .timestamp {
    color: #999;
    font-size: 13px;
}

.dkp-table .main-badge {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty & Error States */
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p:first-child,
.error-state p:first-child {
    font-size: 24px;
    margin-bottom: 10px;
}

.error-state p:first-child {
    color: #ff6b6b;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 20px;
    color: #ffd700;
}

/* ============================================
   DKP HISTORY
   ============================================ */

.dkp-history {
    padding: 20px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-entry {
    background: rgba(26, 26, 26, 0.8);
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.history-entry:hover {
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.history-entry.loot {
    border-left-color: #10b981;
}

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

.entry-type {
    font-size: 14px;
    font-weight: 700;
    color: #ffd700;
}

.history-entry.loot .entry-type {
    color: #10b981;
}

.entry-time {
    font-size: 13px;
    color: #999;
}

.entry-body {
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
}

.entry-body strong {
    color: #ffd700;
}

.dkp-change {
    display: inline-block;
    margin: 0 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.dkp-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.dkp-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.entry-reason {
    font-size: 14px;
    color: #c0c0c0;
    font-style: italic;
    margin-top: 8px;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.entry-admin {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

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

@media (max-width: 1024px) {
    .dkp-table {
        font-size: 13px;
    }
    
    .dkp-table th,
    .dkp-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .dkp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dkp-actions {
        width: 100%;
    }
    
    .btn-sync,
    .btn-history {
        flex: 1;
    }
    
    .dkp-table-container {
        padding: 15px;
    }
    
    .dkp-table {
        font-size: 12px;
    }
    
    .dkp-table th,
    .dkp-table td {
        padding: 8px 10px;
    }
}
