/* ============================================
   Article Card Themed Component
   Extracted from layouts/partials/article-card.html
   ============================================ */

/* Theme Variables */
.article-card-themed {
    --card-bg: var(--off-white);
    --card-border: var(--golden-yellow);
    --card-border-width: 2px;
    --card-shadow: var(--shadow-medium);
    --card-shadow-hover: var(--shadow-heavy);
    --card-radius: var(--border-radius);
    --card-title-color: var(--dark-gray);
    --card-text-color: var(--medium-gray);
    --card-accent: var(--brand-red);
    --card-placeholder: var(--warm-beige);
}

/* Featured theme - more prominent */
.article-card-themed[data-theme="featured"] {
    --card-border: var(--brand-red);
    --card-border-width: 3px;
    --card-shadow: var(--shadow-heavy);
}

/* Compact theme - tighter, softer */
.article-card-themed[data-theme="compact"] {
    --card-border-width: 1px;
    --card-border: var(--warm-beige);
    --card-shadow: var(--shadow-light);
}

/* Minimal theme - borderless */
.article-card-themed[data-theme="minimal"] {
    --card-border: transparent;
    --card-border-width: 0;
    --card-bg: white;
    --card-shadow: none;
    --card-shadow-hover: var(--shadow-light);
}

/* Core Card Styles */
.article-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    border: var(--card-border-width) solid var(--card-border);
}

@media (min-width: 480px) {
    .article-card {
        flex-direction: row;
    }
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.article-card::before,
.article-card-content::before {
    display: none;
}

.article-card-link {
    display: flex;
    flex-direction: inherit;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.article-card-image {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

@media (min-width: 480px) {
    .article-card-image {
        width: 40%;
        aspect-ratio: 4/3;
    }
}

.article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.article-card:hover .article-thumb {
    transform: scale(1.05);
}

.article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-placeholder);
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.article-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.article-card-title {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
    color: var(--card-title-color);
    line-height: 1.3;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: var(--card-text-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.read-time {
    font-size: 0.85rem;
    color: var(--card-accent);
}

/* Editorial theme — Economist style: no image, red top rule, pure typography */
.article-card-themed[data-theme="editorial"] {
    --card-bg: white;
    --card-border: transparent;
    --card-border-width: 0;
    --card-shadow: none;
    --card-shadow-hover: none;
    border-top: 4px solid var(--brand-red);
    border-radius: 0;
    flex-direction: column;
    overflow: visible;
}

.article-card-themed[data-theme="editorial"]:hover {
    transform: none;
    box-shadow: none;
}

.article-card-themed[data-theme="editorial"] .article-card-link {
    flex-direction: column;
}

.article-card-themed[data-theme="editorial"] .article-card-image {
    display: none;
}

.article-card-themed[data-theme="editorial"] .article-card-content {
    padding: 0.5rem 0 0.75rem;
}

.article-card-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-red);
    margin-bottom: 0.3rem;
}

.article-card-themed[data-theme="editorial"] .article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    transition: color var(--transition-medium);
}

.article-card-themed[data-theme="editorial"]:hover .article-card-title {
    color: var(--brand-red);
}

.article-card-themed[data-theme="editorial"] .article-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.article-card-themed[data-theme="editorial"] .read-time {
    font-size: 0.78rem;
    color: var(--medium-gray);
}