/**
 * Commission Card Component - Ultra Dark Mode Edition
 * 
 * Reusable card component for displaying work categories.
 */

.commission-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2rem;
    min-height: 320px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .commission-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

/* Hover Accent */
.commission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0c2340, #d4af37);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.commission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .commission-card:hover {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.commission-card:hover::before {
    opacity: 1;
}

/* ============================================
   Header
   ============================================ */
.commission-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.commission-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%);
    color: #0c2340;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

[data-theme="dark"] .commission-card__icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #d4af37;
}

.commission-card:hover .commission-card__icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5a 100%);
    color: #d4af37;
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.2);
}

.commission-card__title-wrapper {
    flex: 1;
    min-width: 0;
}

.commission-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d20;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

[data-theme="dark"] .commission-card__title {
    color: #f1f5f9;
}

.commission-card__subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

[data-theme="dark"] .commission-card__subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Content
   ============================================ */
.commission-card__content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.commission-rate {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.commission-rate__percentage {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

[data-theme="dark"] .commission-rate__percentage {
    background: linear-gradient(135deg, #d4af37 0%, #e9d38b 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.commission-rate__label {
    font-size: 0.85rem;
    color: #64748b;
    align-self: flex-end;
    padding-bottom: 0.25rem;
}

[data-theme="dark"] .commission-rate__label {
    color: rgba(255, 255, 255, 0.6);
}

/* Details List */
.commission-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.commission-details__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

[data-theme="dark"] .commission-details__item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.commission-details__item:last-child {
    border-bottom: none;
}

.commission-details__label {
    color: #64748b;
}

[data-theme="dark"] .commission-details__label {
    color: rgba(255, 255, 255, 0.6);
}

.commission-details__value {
    font-weight: 600;
    color: #1a1d20;
}

[data-theme="dark"] .commission-details__value {
    color: #f1f5f9;
}

/* ============================================
   Footer
   ============================================ */
.commission-card__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .commission-card__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.commission-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .commission-card__action {
    color: #d4af37;
}

.commission-card__action:hover {
    color: #d4af37;
    gap: 0.75rem;
}

.commission-card__action-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.commission-card__action:hover .commission-card__action-icon {
    transform: translateX(4px);
}

/* ============================================
   Featured Variant
   ============================================ */
.commission-card--featured {
    border: 2px solid #d4af37;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        rgba(212, 175, 55, 0.05) 100%
    );
}

[data-theme="dark"] .commission-card--featured {
    background: linear-gradient(
        135deg,
        rgba(30, 41, 59, 0.8) 0%,
        rgba(212, 175, 55, 0.1) 100%
    );
    border-color: #d4af37;
}

.commission-card--featured::before {
    opacity: 1;
    height: 6px;
}
