/**
 * Commission Structure Component - Ultra Dark Mode Edition
 */

/* ============================================
   Grid Layout
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .category-card--featured {
        grid-column: span 1;
    }
}

/* ============================================
   Standard Cards
   ============================================ */
.category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

/* Hover accent line */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0c2340, #d4af37);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   Ultra Dark Mode - Standard Cards
   ============================================ */
[data-theme="dark"] .category-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .category-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.08);
}

/* ============================================
   Featured Cards
   ============================================ */
.category-card--featured {
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5a 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.category-card--featured:hover {
    background: linear-gradient(135deg, #0a1d33 0%, #0c2340 100%);
    box-shadow: 
        0 25px 50px rgba(12, 35, 64, 0.4),
        0 0 40px rgba(212, 175, 55, 0.15);
}

.category-card--featured::before {
    background: linear-gradient(90deg, #d4af37, #e9d38b);
}

/* Featured card content colors */
.category-card--featured .category-title,
.category-card--featured .category-subtitle,
.category-card--featured .category-meta,
.category-card--featured .category-cap {
    color: rgba(255, 255, 255, 0.9);
}

.category-card--featured .category-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card--featured .category-icon i {
    color: #d4af37;
}

.category-card--featured .category-commission {
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* ============================================
   Ultra Dark Mode - Featured Cards
   ============================================ */
[data-theme="dark"] .category-card--featured {
    background: linear-gradient(135deg, rgba(12, 35, 64, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.2);
}

[data-theme="dark"] .category-card--featured:hover {
    background: linear-gradient(135deg, #0c2340 0%, #1a3a5a 100%);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(212, 175, 55, 0.2);
}

/* ============================================
   Card Icon
   ============================================ */
.category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 1.5rem;
    color: #d4af37;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.15);
}

[data-theme="dark"] .category-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ============================================
   Card Content
   ============================================ */
.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #1a1d20;
}

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

.category-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

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

.category-commission {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 0.25rem;
    line-height: 1;
}

[data-theme="dark"] .category-commission {
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.category-cap {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .category-cap {
    color: rgba(255, 255, 255, 0.5);
}

.category-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

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

.category-card--featured .category-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Note & CTA
   ============================================ */
.commission-note {
    margin-top: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.commission-note i {
    color: #d4af37;
}

[data-theme="dark"] .commission-note {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.commission-cta {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   Button Styles
   ============================================ */
.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border: 2px solid #0c2340;
    border-radius: 50px;
    font-weight: 600;
    color: #0c2340;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-secondary-outline:hover {
    background: #0c2340;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 35, 64, 0.25);
}

[data-theme="dark"] .btn-secondary-outline {
    border-color: rgba(212, 175, 55, 0.5);
    color: #d4af37;
}

[data-theme="dark"] .btn-secondary-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}
