/* =============================================
   SUMMARIES — Styles
   ============================================= */

/* --- Design tokens (shared with home/navbar/footer/languages;
   redeclared here since summaries.css loads standalone) --- */
:root {
    --mm-surface: #141c30;
    --mm-border: rgba(255, 255, 255, 0.08);
    --mm-text: #e2e8f0;
    --mm-text-dim: #94a3b8;
    --mm-accent: #60a5fa;
}

body.light-mode {
    --mm-surface: #ffffff;
    --mm-border: rgba(15, 23, 42, 0.08);
    --mm-text: #1e293b;
    --mm-text-dim: #64748b;
    --mm-accent: #2563eb;
}

.summaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 30px auto 0 auto;
}

/* עיצוב כרטיסיית סיכום */
.summary-item-card {
    position: relative;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: var(--mm-text);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column; /* מסדר את האלמנטים מלמעלה למטה */
    text-align: right;
    cursor: pointer;
    overflow: hidden;
    min-height: 260px; /* מבטיח גובה מינימלי אחיד */
}

.summary-item-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: var(--mm-accent);
}

.summary-item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* כותרת הסיכום */
.summary-item-card h3 {
    color: var(--mm-text);
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
}

/* תיאור הסיכום */
.summary-item-card p {
    color: var(--mm-text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* מיכל תחתון לקרדיט ולפעולה - נצמד לתחתית */
.summary-footer {
    margin-top: auto; /* דוחף הכל לתחתית הכרטיסייה */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mm-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.format-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid var(--mm-border);
    color: var(--mm-accent);
    font-size: 1rem;
}

.download-action span:last-child {
    white-space: nowrap;
}

/* עיצוב שם הכותב */
.summary-author {
    display: block;
    font-size: 0.9rem;
    color: var(--mm-text-dim);
    padding-right: 10px;
    border-right: 3px solid var(--mm-accent);
    font-style: italic;
}

/* רספונסיביות */
@media (max-width: 600px) {
    .summaries-grid {
        grid-template-columns: 1fr;
    }
}

.copyright-notice {
    color: var(--mm-text-dim);
    font-size: 0.85rem;
    margin-top: -30px; /* מצמצם את הרווח מהפסקה שמעליה */
    margin-bottom: 40px;
    line-height: 1.5;
}

.copyright-notice a {
    color: var(--mm-accent);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.copyright-notice a:hover {
    color: var(--mm-text);
}
