/* ==========================================
   ChessAPit - Base Styles
   קובץ: mystyle-base.css
   תיאור: משתנים, פונטים וסגנונות בסיס
   ========================================== */

/* === פונטים === */
/* Google Fonts loaded directly in HTML for better performance (removed @import) */

/* === משתני CSS לצבעים ומידות === */
:root {
    --board-light: #cafdfe;
    --board-dark: #cbcafe;
    --page-content-bg: #212a37;
    --container-bg: #0f172a22;
    --text-primary: #312e2b;
    --text-secondary: #0f172a;
    --highlight-move: #8efdfe;
    --highlight-move-dark: #cba2fe;
    --highlight-selected: #ffdd00;
    --highlight-invalid: #666666;
    --button-bg: #ffffff;
    --button-border: #666666;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* === מיכל ראשי === */
/* === מיכל ראשי (ברירת מחדל: מובייל) === */
#chessContainer {
    width: calc(100% + 32px); /* רוחב מלא ועוד גלישה מעבר לשולי התוכן בפוסט */
    max-width: 80vh;          /* מובייל: כמו שהיה */
    margin: 0 -16px;          /* קיזוז פדינג של הפוסט עצמו */
    background-color: var(--container-bg);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    touch-action: manipulation;
}

/* === מסכים בינוניים (טאבלט וכד') === */
@media (min-width: 768px) {
  #chessContainer {
    max-width: 65vh;
  }
}

/* === מסכים גדולים (דסקטופ) === */
@media (min-width: 1024px) {
  #chessContainer {
    max-width: 55vh;
  }
}

/* === מסכים ענקיים === */
@media (min-width: 1440px) {
  #chessContainer {
    max-width: 50vh;
  }
}

/* === כיתות עזר === */
.hidden {
    display: none !important;
}

/* === שדה FEN (מוסתר) === */
#fenInputContainer {
    margin-bottom: 1px;
}

#fenInput {
    width: 70%;
    padding: 5px;
    font-size: 18px;
}

#loadButton {
    padding: 5px 10px;
    font-size: 2vmin;
}

/* === כותרת החידה === */
#explanationBox {
    background: var(--page-content-bg);
    border-bottom: 1px solid var(--board-dark);
    border-top: 1px solid var(--board-dark);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px 0px 8px;
    display: flex;
    flex-direction: column;
    font-family: 'Varela Round', 'Rubik', Arial, sans-serif;
    font-size: 18px;
    justify-content: flex-end;
    align-items: stretch;
}

#explanationBox .explanation-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

#explanationBox .puzzle-title {
    font-size: 18px;
    color: #ffffff; /* var(--text-primary); */
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: left;
    flex: 0 0 auto;
    font-family: 'Rubik', 'Varela Round', Arial, sans-serif;
    line-height: 1.08;
    margin-right: 8px;
}

#explanationBox .puzzle-author {
    font-size: 19px;
    color: #ffffff; /* var(--text-primary); */
    font-weight: 400;
    text-align: right;
    flex: 1 1 auto;
    font-family: 'Rubik', 'Varela Round', Arial, sans-serif;
    white-space: nowrap;
    letter-spacing: 1.5px;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === אזור תחתון === */
#aftbrd {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--board-light);
    border-bottom: 1px solid var(--board-light);
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}