/**
 * EineCosmetics Card Component
 * Unified Card System with 3 Elevation Levels
 */

@import '../eine-design-system.css';

/* ==========================================================================
   CARD BASE STYLES
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-elegant);
}

/* ==========================================================================
   CARD ELEVATION LEVELS
   ========================================================================== */

/* Level 1 - Subtle (for grid cards, lists) */
.card-elevation-1 {
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-elevation-1:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Level 2 - Medium (for feature cards, service cards) */
.card-elevation-2 {
    box-shadow: var(--shadow-base);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.card-elevation-2:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-6px);
}

/* Level 3 - High (for showcase, featured items) */
.card-elevation-3 {
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-elevation-3:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-10px);
}

/* ==========================================================================
   CARD WITH ACCENT BORDER
   ========================================================================== */

.card-accent {
    position: relative;
}

.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height var(--transition-slow);
}

.card-accent:hover::before {
    height: 100%;
}

/* ==========================================================================
   CARD WITH GOLD ACCENT
   ========================================================================== */

.card-gold {
    border: 1px solid var(--color-gold);
    box-shadow: var(--shadow-premium);
}

.card-gold:hover {
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   CARD CONTENT
   ========================================================================== */

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-silver);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--color-off-white);
    border-top: 1px solid var(--color-silver);
}

.card-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-elegant-gray);
    margin: 0 0 var(--space-3) 0;
}

.card-text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-gray);
    margin: 0;
}

/* ==========================================================================
   SERVICE CARD (Premium with Icon)
   ========================================================================== */

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-elegant);
    border: 1px solid var(--color-silver);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(233, 30, 99, 0.3);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-6) auto;
    color: var(--color-white);
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-content {
    padding: 0 var(--space-6) var(--space-6);
}

.service-title {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-3);
    text-align: center;
}

.service-description {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-warm-gray);
    text-align: center;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: all var(--transition-elegant);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gradient-soft);
}

.product-info {
    padding: var(--space-5);
}

.product-category {
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    margin-bottom: var(--space-2);
}

.product-name {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-elegant-gray);
    margin-bottom: var(--space-2);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-gold);
}

/* ==========================================================================
   SHIMMER EFFECT (Premium Hover)
   ========================================================================== */

.card-shimmer {
    position: relative;
    overflow: hidden;
}

.card-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left var(--transition-slow);
}

.card-shimmer:hover::after {
    left: 100%;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-4);
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin: var(--space-4) auto;
    }

    .product-image {
        height: 200px;
    }
}
