/**
 * EVE ESI Manager - Character Dashboard Styles
 * @since 1.0.0
 */

/* Dashboard Container */
.eve-dashboard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.eve-dashboard.no-characters {
    text-align: center;
    padding: 40px 20px;
}

.eve-dashboard.no-characters h2 {
    margin: 0 0 15px 0;
    color: #666;
}

.eve-dashboard.no-characters p {
    color: #999;
    margin: 10px 0;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: #23282d;
}

.period-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.period-selector label {
    font-weight: 500;
    color: #666;
}

.period-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Character Card */
.character-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.character-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.character-card.primary-character {
    background: #f0f8ff;
    border-color: #0073aa;
}

.primary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Card Header */
.card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.character-portrait {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.character-identity h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #23282d;
}

.character-identity .corporation {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
}

/* Verification Badge */
.verification-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.verification-badge.clean {
    background: #4caf50;
    color: white;
}

.verification-badge.minor {
    background: #ffc107;
    color: #333;
}

.verification-badge.moderate {
    background: #ff9800;
    color: white;
}

.verification-badge.severe {
    background: #f44336;
    color: white;
}

.verification-badge.unknown {
    background: #999;
    color: white;
}

/* Card Stats */
.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-summary {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.stat-summary h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-highlight {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: bold;
    color: #23282d;
}

.stat-detail {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.no-data {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    font-style: italic;
}

/* Card Actions */
.card-actions {
    text-align: center;
}

.card-actions .button {
    display: inline-block;
    padding: 5px 5px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.card-actions .button:hover {
    background: #005a87;
}

/* Character List */
.character-list {
    background: #4a4a4a;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    overflow: hidden;
}

.character-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.character-list-item:last-child {
    border-bottom: none;
}

.character-list-item:hover {
    background: #f9f9f9;
}

.character-list-item img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
}

.character-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.character-list-info strong {
    font-size: 16px;
    color: #23282d;
}

.character-list-info span {
    font-size: 13px;
    color: #666;
}

.primary-indicator {
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

/* Character Comparison */
.character-comparison {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.character-comparison h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #23282d;
}

.character-comparison-table {
    overflow-x: auto;
}

.character-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.character-comparison-table thead {
    background: #f7f7f7;
}

.character-comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #23282d;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.character-comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
}

.character-comparison-table tbody tr:hover {
    background: #f9f9f9;
}

.character-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Dashboard Footer */
.dashboard-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.dashboard-footer .button-primary {
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    transition: background 0.3s;
}

.dashboard-footer .button-primary:hover {
    background: #005a87;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .period-selector {
        width: 100%;
    }

    .period-selector select {
        flex: 1;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .character-comparison-table {
        font-size: 13px;
    }

    .character-comparison-table th,
    .character-comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .eve-dashboard {
        padding: 15px;
    }

    .dashboard-header h2 {
        font-size: 22px;
    }

    .character-card {
        padding: 15px;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .character-portrait {
        width: 96px;
        height: 96px;
    }

    .character-list-item {
        flex-direction: column;
        text-align: center;
    }

    .character-list-info {
        align-items: center;
    }
}
