@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

body {
    background-image: url("bg.png");
    background-size: no-repeat;
    background-repeat: repeat-x;
    background-color: #0b4351;
    margin: 0;
    padding: 20px;
    min-width: 0;
    width: 100%;
    margin-top: 4%;
    font-family: 'Rubik', Arial, sans-serif;
}

.article-container {
    position: relative; /* הוסף את זה */
    background: #fff;
    max-width: 800px;
    min-height: 700px;
    margin: 48px auto 48px auto;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 32px 28px 36px 28px;
    direction: rtl;
}

.article-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 18px;
    gap: 12px;
}

.article-title {
    flex: 1 1 100%;
    text-align: right;
    color: #1976d2;
    font-size: 2em;
    margin: 0 0 12px 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.author-name {
    font-size: 1em;
    color: #1976d2;
    font-weight: 500;
}

.article-date {
    font-size: 0.95em;
    color: #888;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 1em;
    color: #444;
    min-width: 60px;
    transition: box-shadow 0.2s;
}

.meta-icon {
    font-size: 1.2em;
    margin-left: 2px;
    color: #1976d2;
    vertical-align: middle;
}

.meta-item .meta-icon[style] {
    color: #e53935;
}

.meta-label {
    font-size: 0.95em;
    color: #666;
    margin-right: 2px;
}

.article-content {
    margin-top: 18px;
    color: #222;
    font-size: 1.1em;
    line-height: 1.8;
    word-break: break-word;
}

@media (max-width: 300px) {
    .article-container {
        max-width: 98vw;
        padding: 18px 6vw 24px 6vw;
    }
    .article-title {
        font-size: 1.3em;
    }
    .author-img {
        width: 36px;
        height: 36px;
    }
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px 16px;
    font-size: 1em;
    color: #1976d2;
    cursor: pointer;
    margin-right: auto;   /* דוחף את הכפתור לשמאל ב-RTL */
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    transition: background 0.15s, border 0.15s;
}

.share-btn:hover, .share-btn:focus {
    background: #e3f0fc;
    border-color: #1976d2;
}

@media (max-width: 300px) {
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    .share-btn {
        justify-content: center;
        margin: 8px 0 0 0;
    }
}

.back-btn-container {
    position: relative;
    width: 100%;
    max-width: 1360px; /* 800px (רוחב המאמר) + 560px (מרחק מהצדדים) */
    margin: 0 auto;
    height: 0;
    z-index: 1000;
}

.back-btn {
    position: absolute;
    right: 255px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.back-btn img {
    width: 100px;
    transition: opacity 0.15s;
    color: #0000;
    display: block;
    pointer-events: none;
}

@media (max-width: 1000px) {
    .back-btn {
        visibility: hidden;
    }
}

#disqus_thread {
    margin-top: 100px;
}

.images-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
  }
  
  .images-grid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    background: #f8f8f8;
    object-fit: cover;
    transition: transform 0.15s;
  }
  
  .images-grid img:hover {
    transform: scale(1.04);
  }