/* ==========================================
   MangaStudio - Cards Component
   ========================================== */

/* Info Card */
.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
}

.card-content {
    padding: 24px;
}

/* Project Card */
.project-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-thumbnail {
    height: 180px;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.project-thumbnail-placeholder svg {
    color: var(--text-tertiary);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Project Badges */
.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.badge-genre {
    background: rgba(0, 113, 227, 0.1);
    color: var(--accent);
}

.badge-style {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.project-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-date svg {
    width: 12px;
    height: 12px;
}

/* Project Card Actions */
.project-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 70%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.project-card:hover .project-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-card-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card-action svg {
    width: 16px;
    height: 16px;
}

.btn-card-action span {
    display: none;
}

@media (min-width: 480px) {
    .btn-card-action span {
        display: inline;
    }
}

.btn-open {
    background: var(--accent);
    color: white;
}

.btn-open:hover {
    background: var(--accent-hover);
}

.btn-edit {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-edit:hover {
    background: #ebebed;
}

.btn-delete {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.btn-delete:hover {
    background: rgba(255, 59, 48, 0.2);
}

/* Character Card */
.character-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.character-card:hover {
    transform: scale(1.02);
}

.character-image {
    height: 120px;
    background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image svg {
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
}

.character-name {
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Add Character Card */
.add-character {
    border: 2px dashed var(--border);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 156px;
}

.add-character svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.add-character span {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Stat Item */
.stat-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}
