/* ============================================
   Cover System Styles
   ============================================ */

/* Base cover styles */
.cover-image {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cover-placeholder {
    border: 2px dashed rgba(107, 107, 107, 0.5);
    transition: all 0.2s ease;
}

.cover-placeholder:hover {
    border-color: rgba(234, 179, 8, 0.5);
    background-color: rgba(234, 179, 8, 0.05);
}

/* Drop target styles */
.cover-drop-target {
    position: relative;
    transition: outline-color 0.15s, background 0.15s;
}

.cover-drag-over {
    outline: 2px dashed var(--accent) !important;
    outline-offset: 2px;
    background: rgba(var(--accent-rgb), 0.06);
}

/* Dragging states */
.card-dragging-as-cover,
.ref-dragging-as-cover {
    opacity: 0.7;
    cursor: copy;
}

/* Folder chip with cover */
.folder-chip-cover {
    display: flex;
    align-items: center;
    gap: 8px;
}

.folder-chip-cover .cover-image,
.folder-chip-cover .cover-placeholder {
    flex-shrink: 0;
}

/* Project card with cover */
.project-card-cover {
    position: relative;
    overflow: hidden;
}

.project-card-cover .cover-bg {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    filter: blur(1px);
}

.project-card-cover .cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
}

/* Company card with cover */
.company-card-cover {
    position: relative;
}

.company-card-cover .cover-image {
    border-radius: 50%;
}

/* User avatar with cover */
.user-avatar-cover {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar-cover .cover-image {
    border-radius: 50%;
}

/* Cover selector modal */
.cover-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.cover-selector-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cover-selector-item:hover {
    transform: scale(1.05);
    border-color: #eab308;
}

.cover-selector-item.selected {
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3);
}

/* Context menu for covers */
.cover-context-menu {
    position: absolute;
    background: rgba(23, 23, 23, 0.95);
    border: 1px solid rgba(63, 63, 63, 0.8);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 160px;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.cover-context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #e5e5e5;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
}

.cover-context-menu-item:hover {
    background: rgba(234, 179, 8, 0.15);
}

.cover-context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Animation for cover change */
@keyframes coverPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cover-updated {
    animation: coverPulse 0.3s ease;
}
