﻿/* ==========================================================================
   Ligat Ha'al - Opinions Page (Luxury Magazine Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;700;800&display=swap');

:root {
    --accent-gold: #d4af37;
    --accent-green: #00ff41;
    --glass-bg: rgba(25, 27, 31, 0.9);
    --input-bg: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
}

html {
    height: 100%;
}

body {
    font-family: 'Assistant', sans-serif;
    background-color: #0f1012;
    margin: 0;
    padding: 0;
    background-image: url('../../images/IMG_0234.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.85) 100%);
        z-index: -1;
    }

.glowing-wave-header {
    font-family: 'Assistant', sans-serif;
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 12px;
    margin: 60px 0;
    background: linear-gradient( to bottom, #ffffff 0%, var(--accent-gold) 50%, #8a6d3b 100% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8));
    position: relative;
    animation: titleEntrance 1.5s ease-out;
}

    .glowing-wave-header::before {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        background: linear-gradient( 45deg, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55% );
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine 4s infinite linear;
        z-index: 1;
    }

    .glowing-wave-header::after {
        content: "";
        display: block;
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
        margin: 20px auto;
        border-radius: 50px;
        box-shadow: 0 0 20px var(--accent-gold);
        transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .glowing-wave-header:hover::after {
        width: 400px;
    }

/* --- אנימציות --- */
@keyframes titleEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        letter-spacing: 25px;
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 12px;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* --- פריסת עמוד רחבה יותר להתאמת 4 טורות --- */
.opinions-page {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    box-sizing: border-box;
    flex: 1 0 auto;
}

/* --- פריסת רשת (Grid) - 4 פוסטים בשורה --- */
.opinions-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* רספונסיביות למסכים קטנים יותר */
@media (max-width: 1400px) {
    .opinions-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1000px) {
    .opinions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .opinions-grid {
        grid-template-columns: 1fr !important;
    }
}

.input-field {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--input-bg);
    color: white;
    font-family: 'Assistant', sans-serif;
}

/* --- פקדים --- */
.publish-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    gap: 15px;
}

.dropdown {
    padding: 10px 35px 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    appearance: none;
    font-family: 'Assistant', sans-serif;
}

    .dropdown option {
        background: #fff;
        color: #000;
        font-family: 'Assistant', sans-serif;
    }

.btn-green {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Assistant', sans-serif;
}

/* --- סינון --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #ccc;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-family: 'Assistant', sans-serif;
}

    .filter-btn::before {
        content: "";
        width: 10px;
        height: 10px;
        border: 2px solid var(--accent-gold);
        border-radius: 50%;
    }

    .filter-btn.highlight {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
        background: rgba(212, 175, 55, 0.1);
    }

        .filter-btn.highlight::before {
            background: var(--accent-gold);
        }

/* --- כרטיס פוסט (IG Style) --- */
.ig-post-card {
    background: #1a1a1a !important;
    border-radius: 12px !important;
    padding: 15px !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* שורה עליונה של הפוסט */
.post-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    gap: 5px;
}

.author-info {
    display: flex !important;
    flex-direction: column !important;
    font-size: 11px !important;
}

.team-name {
    color: var(--accent-green);
}

.post-title {
    font-size: 18px !important;
    color: var(--accent-gold) !important;
    margin: 5px 0 !important;
}

.post-divider {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.post-content {
    font-size: 13px;
    color: #ddd;
    line-height: 1.4;
    flex-grow: 1;
}

/* --- מעטפת תמונה בצבע של הכרטיס (ללא שחור בצדדים) --- */
.ig-image-container {
    width: 100% !important;
    max-height: 350px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin: 10px 0 !important;
    background: #1a1a1a !important; /* מותאם לצבע הרקע של הכרטיס */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.ig-post-image {
    width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: contain !important; /* מציג את כל התמונה במלואה מבלי לחתוך */
    display: block !important;
    margin: 0 auto !important;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
}

.like-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    color: var(--accent-gold) !important;
    padding: 4px 10px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Assistant', sans-serif;
}

.post-date {
    color: #888;
}

/* --- תגובות --- */
.comments-box {
    margin-top: 10px;
    background: rgba(0,0,0,0.15);
    padding: 8px;
    border-radius: 8px;
}

.single-comment {
    background: rgba(255,255,255,0.03);
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 4px 8px 8px 4px;
    border-right: 2px solid var(--accent-gold);
    font-size: 12px;
}

.comment-user {
    font-weight: bold;
    color: var(--accent-gold);
}

.add-comment-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.comm-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 6px 10px;
    color: white;
    font-size: 12px;
    font-family: 'Assistant', sans-serif;
}

.btn-small {
    background: var(--accent-gold);
    border: none;
    padding: 0 12px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Assistant', sans-serif;
}

/* --- פוטר --- */
footer, .site-footer {
    background: rgba(0, 0, 0, 0.7);
    border-top: none;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: var(--accent-gold);
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

    footer span, .site-footer span {
        color: var(--accent-gold);
        font-weight: bold;
    }

/* כפתור פתיחת הטורים */
.open-upload-modal-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

    .open-upload-modal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
    }

/* רקע שחור מוכהה למסך המלא מאחורי המודל */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* כרטיס המודל עצמו במרכז המסך */
.custom-modal-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    direction: rtl;
    animation: modalScaleIn 0.3s ease;
}

    .custom-modal-card h3 {
        color: #f1f1f1;
        margin-bottom: 20px;
        font-size: 22px;
        text-align: center;
    }

/* כפתור סגירה (X) פינתי */
.close-modal-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

    .close-modal-btn:hover {
        color: #fff;
    }

.form-group {
    margin-bottom: 15px;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- כפתור מחיקה אדום ובולט --- */
.delete-post-btn-red {
    background-color: #ff3b30 !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: bold !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4) !important;
    border: none !important;
    cursor: pointer !important;
}

    .delete-post-btn-red:hover {
        background-color: #d32f2f !important;
        color: white !important;
        text-decoration: none !important;
    }

.post-target-badge {
    margin-top: 3px;
    font-size: 10px;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
    border: 1px solid rgba(212, 175, 55, 0.2);
}