/* ════════════════════════════════════════════════════════
 * ▶File Information
 *  FILE NAME    : cache-styles.css
 *  FILE PATH    : /assets/css/cache-styles.css
 *  DESCRIPTION  : Styles for character cache functionality
 * ════════════════════════════════════════════════════════ */

/* Data refresh section styles */
.data-refresh-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-refresh-info div {
    font-size: 0.9rem;
    color: #aaa;
}

.data-refresh-info div span {
    color: #f8ba08;
}

.refresh-button {
    display: inline-block;
    background-color: rgba(248, 186, 8, 0.2);
    color: #f8ba08;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #f8ba08;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Fritz Quadrata', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    align-self: flex-start;
}

.refresh-button:hover {
    background-color: #f8ba08;
    color: #000;
    text-decoration: none;
}

/* Cache status indicator */
.cache-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.cache-status.fresh {
    background-color: #4CAF50; /* Green */
}

.cache-status.stale {
    background-color: #FFC107; /* Yellow */
}

.cache-status.expired {
    background-color: #F44336; /* Red */
}

/* Cache management panel */
.cache-management {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.cache-management h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cache-status-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.cache-status-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
}

.cache-status-item .name {
    font-weight: bold;
    color: #f8ba08;
    margin-bottom: 5px;
}

.cache-status-item .timestamp {
    font-size: 0.8rem;
    color: #aaa;
}

/* For cache debug/admin page */
.cache-admin-section {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.cache-admin-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.cache-debug-info {
    font-family: monospace;
    white-space: pre-wrap;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    overflow: auto;
    max-height: 400px;
    font-size: 12px;
    color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-refresh-info {
        margin-top: 10px;
    }
    
    .refresh-button {
        width: 100%;
        margin-top: 10px;
    }
    
    .cache-status-list {
        grid-template-columns: 1fr;
    }
}