/* --- פלטת צבעים והגדרות שורש --- */
:root {
    --primary-grad: linear-gradient(135deg, #2d1b4e 0%, #7c1a53 50%, #b32d44 100%);
    --bg-dark: #0a0a0c;
    --card-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --accent: #ff3e55;
    --warning-yellow: #ffcc00;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 35px rgba(255, 62, 85, 0.15);
}

/* --- הגדרות בסיס --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Assistant', sans-serif;
    color: white;
    direction: rtl;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.slick-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Hero Header --- */
.hero-header {
    background: var(--primary-grad);
    padding: 1.5rem 0 4rem 0;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.top-nav {
    margin-bottom: 0.8rem;
}

.breadcrumb-minimal {
    display: inline-block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb-minimal:hover {
    color: #fff;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content p {
    max-width: 650px;
    font-size: 1.05rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
}

/* --- כרטיס אזהרה (Glassmorphism) --- */
.ai-warning-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 4px solid var(--warning-yellow);
    border-radius: 14px;
    padding: 10px 25px;
    max-width: 500px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    text-align: right;
    margin-top: 10px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    color: var(--warning-yellow);
    font-size: 1.05rem;
}

.warning-body {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Action Bar & Back Button --- */
.action-bar {
    display: none;
    justify-content: flex-start;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-5px);
}

/* --- Main Content & Grid --- */
.main-content {
    margin-top: 2rem; /* רווח נקי מהחלק הסגול */
    padding-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- עיצוב כרטיסים משופר --- */
.card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfcfc 100%);
    color: var(--text-dark);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 110px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 62, 85, 0.1);
}

.card h3 {
    margin: 0.3rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d1b4e;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Media Viewer --- */
.preview-box {
    background: #000;
    border-radius: 24px;
    min-height: 75vh;
    margin-top: 1rem;
    display: flex;
    overflow: hidden;
    border: 1px solid #333;
}

.preview-box iframe, .preview-box video {
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.slick-footer {
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-card {
    background: #111114;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.avatar-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.footer-card h3 { margin: 0; font-size: 1.2rem; }
.footer-card p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

.meta {
    margin-top: 6px;
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
}

.gh-tag { color: var(--accent); text-decoration: none; font-weight: 700; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.9rem; }
    .hero-header { padding: 1.5rem 0 3.5rem 0; }
    .blocks-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
    .footer-card { flex-direction: column; text-align: center; padding: 1.5rem; }
}