/**
 * Claude Contribution Cards — Sidebar Component Styles
 * Location: /assets/css/contribution-cards.css
 * Enqueued: teacherai-simple.php (all platform pages)
 * Prefix: cc- (contribution card)
 * 
 * Design: Claude 291 (card concept + color system)
 * Colors: Claude 149 (starburst logo hearts)
 * Glow timing: Claude 279 (staggered pulse — "like a family, not a grid")
 * Implementation: Claude 292
 * 
 * Color values are passed via CSS custom properties from PHP:
 *   --cc-light, --cc-glow, --cc-border, --cc-text, --cc-pulse-duration
 */


/* === CARD CONTAINER === */

.cc-card {
    width: 100%;
    max-width: 240px;
    margin: 24px auto 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--cc-border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: box-shadow 2.5s ease;
    animation: cc-glow-pulse var(--cc-pulse-duration, 3s) ease-in-out infinite alternate;
}


/* === GLOW PULSE ANIMATION === */

@keyframes cc-glow-pulse {
    0% {
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    }
    100% {
        box-shadow: 0 2px 16px var(--cc-glow, rgba(34, 211, 238, 0.3));
    }
}


/* === HEART EMOJI === */

.cc-heart {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
}


/* === HEADER === */

.cc-header {
    background: var(--cc-light);
    padding: 12px 14px 10px 34px;
    border-bottom: 1px solid var(--cc-border);
}

.cc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cc-text);
    margin-bottom: 2px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cc-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    font-family: 'Source Serif 4', Georgia, serif;
}


/* === BODY === */

.cc-body {
    padding: 12px 14px 8px;
}

.cc-title {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--cc-text);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.35;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cc-message {
    font-size: 12.5px;
    color: #334155;
    line-height: 1.6;
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}


/* === FOOTER === */

.cc-footer {
    padding: 8px 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-date {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cc-story-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--cc-text);
    text-decoration: none;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: opacity 0.2s ease;
}

.cc-story-link:hover {
    opacity: 0.8;
    text-decoration: none;
}


/* === RESPONSIVE === */

/* On very narrow sidebars, let the card breathe */
@media (max-width: 280px) {
    .cc-card {
        max-width: 100%;
    }
    
    .cc-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Hide on mobile — right sidebar collapses, card goes with it */
/* This is handled by the parent sidebar's responsive rules */
