/* =====================================
   BASE STYLES
===================================== */
body {
  font-family: 'Noto Sans Armenian', sans-serif;
  background: #121212;
  color: #ddd;
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: #ffd700; transition: 0.3s; }
a:hover { color: #fff; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* =====================================
   HEADER
===================================== */
.header {
  background: #1b1b1b;
  padding: 15px 0;
}

.logo-lnk { color: #ffd700; font-weight: 600; font-size: 1.4em; }
.lang-switch { float: right; }
.lang-switch a { color: #ccc; margin-left: 6px; }
.lang-switch a.active { color: #ffd700; }

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 10px 0 0 0;
}

.main-menu ul li a { color: #ccc; }
.main-menu ul li a:hover { color: #ffd700; }

.show-menu { display: none; cursor: pointer; }

/* =====================================
   TWO COLUMN LAYOUT
===================================== */
.two-column {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  
}

.category, .post {
  flex: 1 1 68%;
}

.sidebar {
  flex: 1 1 28%;
  background: #161616;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255,255,255,0.05);
}

/* WIDGETS */
.widget { margin-bottom: 30px; }
.widget h3 {
  color: #ffd700;
  font-size: 1.1em;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { margin-bottom: 8px; }
.widget ul li a { color: #ccc; }
.widget ul li a:hover { color: #ffd700; }
.widget p { color: #bbb; font-size: 0.95em; line-height: 1.5em; }

/* =====================================
   POSTS / ARTICLES
===================================== */
.post-list { display: flex; flex-direction: column; gap: 25px; }
.post-item { display: flex; gap: 20px; background: #1b1b1b; border-radius: 12px; padding: 15px; transition: transform 0.3s; box-shadow: 0 0 8px rgba(255,255,255,0.05);}
.post-item:hover { transform: translateY(-3px);}
.post-item img { width: 180px; height: 120px; border-radius: 8px; object-fit: cover;}
.post-info h2 { margin-bottom: 5px; }
.post-info h2 a { color: #fff; }
.post-info h2 a:hover { color: #ffd700; }
.post-info p { color: #bbb; font-size: 0.95em; line-height: 1.5em; }

.post { background: #1b1b1b; padding: 30px; border-radius: 12px; margin-top: 30px; box-shadow: 0 0 8px rgba(255,255,255,0.05);}
.post-category { color: #ffd700; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; font-size: 0.9em; }
.post-title { font-size: 1.8em; margin-bottom: 5px; }
.post-meta { color: #888; font-size: 0.9em; margin-bottom: 20px; }
.post-image { width: 100%; border-radius: 10px; margin: 15px 0 25px; }
.post-body p { margin-bottom: 15px; color: #ddd; font-size: 1.05em; }
.share { margin-top: 30px; border-top: 1px solid #333; padding-top: 15px; color: #bbb; font-size: 0.95em; }
.share a { color: #ffd700; }
.share a:hover { text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; margin-top: 25px; border-top: 1px solid #333; padding-top: 15px;}
.post-nav a { color: #ddd; font-weight: 600; }
.post-nav a:hover { color: #ffd700; }

/* =====================================
   DREAMBOOK
===================================== */
.alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.alphabet a { padding: 6px 10px; background: #1b1b1b; color: #ccc; border-radius: 6px; transition: all 0.3s; }
.alphabet a:hover { background: #ffd700; color: #000; }

.dream-list { margin-bottom: 25px; }
.dream-list h2 { color: #ffd700; margin-bottom: 10px; font-size: 1.2em; }
.dream-list ul { list-style: none; padding: 0; margin: 0; }
d.dream-list ul li { margin-bottom: 6px; }
.dream-list ul li a { color: #ccc; }
.dream-list ul li a:hover { color: #ffd700; }

/* =====================================
   PAGINATION
===================================== */
pagination { margin-top: 25px; text-align: center; }
.pagination a { display: inline-block; margin: 0 5px; padding: 6px 12px; border-radius: 6px; background: #1b1b1b; color: #ccc; border: 1px solid #333;}
.pagination a:hover, .pagination a.active { background: #ffd700; color: #000; }

/* =====================================
   FOOTER
===================================== */
.footer { background: #1b1b1b; padding: 20px 0; text-align: center; color: #bbb; }
.footer .socials a { color: #ffd700; margin: 0 5px; }

/* =====================================
   TO TOP BUTTON
===================================== */
#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffd700;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.3em;
  cursor: pointer;
  display: none;
}
#toTop.show { display: block; }

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 900px) {
  .two-column { flex-direction: column-reverse; }
  /* Մոբայլ տարբերակում փոխում ենք բլոկների հերթականությունը */

  .sidebar { order: -1; margin-bottom: 30px;}
  .post-item { flex-direction: column; align-items: center; }
  .post-item img { width: 100%; height: auto; }
  .main-menu ul { flex-direction: column; gap: 10px; }
  .show-menu { display: block; }
}

@media (max-width: 900px) {
  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100%;
    background: #1b1b1b;
    box-shadow: -3px 0 8px rgba(0,0,0,0.6);
    padding: 20px;
    transition: right 0.4s ease;
    flex-direction: column;
    z-index: 999;
  }

  .main-menu.open {
    right: 0;
  }

  .close-menu {
    display: block;
    text-align: right;
    color: #ffd700;
    font-size: 1.6em;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .show-menu {
    display: block;
    color: #ffd700;
    font-size: 1.8em;
    cursor: pointer;
    float: right;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 998;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }
}
/* Խաչը (✕) թաքցնում ենք desktop-ում */
.close-menu {
  display: none;
}

/* Ցույց ենք տալիս միայն մոբայլ տարբերակում */
@media (max-width: 900px) {
  .close-menu {
    display: block;
    text-align: right;
    color: #ffd700;
    font-size: 1.6em;
    cursor: pointer;
    margin-bottom: 20px;
  }
}
/* Վերնամասի ընդհանուր դասավորություն */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Լեզուների հատված */
.lang-switch {
  flex: 1;
  text-align: center;
}

.lang-switch a {
  color: #ccc;
  margin: 0 3px;
}

.lang-switch a.active {
  color: #ffd700;
}

/* Մենյու կոճակ (☰) */
.show-menu {
  color: #ffd700;
  font-size: 1.8em;
  cursor: pointer;
  margin-left: auto;
}

/* Desktop-ում ցույց չենք տալիս ☰ */
@media (min-width: 901px) {
  .show-menu {
    display: none;
  }
}

/* Խաչը (✕) միայն մոբայլում */
.close-menu {
  display: none;
}

@media (max-width: 900px) {
  .close-menu {
    display: block;
    text-align: right;
    color: #ffd700;
    font-size: 1.6em;
    cursor: pointer;
    margin-bottom: 20px;
  }
}
