/*
Theme Name: muzikdinledur.com
Theme URI: http://muzikdinledur.com
Author: Custom
Description: Minimal, Twenty Twenty-Five inspired theme for muzikdinledur.com.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muzikdinledur.com
Tags: blog, minimal, responsive, block-style-inspired
*/

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

:root {
    --primary-color: #7C3AED;
    --secondary-color: #C084FC;
    --background-color: #FAF5FF;
    --header-font: 'Platypi', serif;
    --body-font: 'Literata', serif;
    --text-color: #111111;
    --border-color: #e5e7eb;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* Header styling */
header {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
header .site-title {
    margin: 0;
    font-family: var(--header-font);
    font-size: 3rem;
    line-height: 1.2;
}
header .site-description {
    margin-top: 15px;
    font-size: 1.25rem;
    opacity: 0.7;
}

/* Navigation menu */
.primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.primary-menu li {
    margin: 0;
}
.primary-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
.primary-menu a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Content wrapper */
.content-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Post card / article */
.post-card {
    margin-bottom: 40px;
}
.post-card h2.entry-title {
    margin: 0 0 10px 0;
    font-family: var(--header-font);
    font-size: 2rem;
    line-height: 1.2;
}
.post-card h2.entry-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.post-card h2.entry-title a:hover {
    text-decoration: underline;
}
.post-card .entry-content {
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-menu li { margin: 0; }
.footer-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
.footer-menu a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

@media (max-width: 768px) {
    header .site-title { font-size: 2.5rem; }
    header .site-description { font-size: 1rem; }
    .primary-menu ul { gap: 10px; }
    .post-card h2.entry-title { font-size: 1.6rem; }
}

/* базовая сетка меню */
.primary-menu ul,
.primary-menu .menu { list-style: none; margin: 0; padding: 0; }
.primary-menu .menu {
  display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.primary-menu .menu > li { position: relative; }
.primary-menu a { text-decoration: none; font-weight: 700; }

/* подменю — по умолчанию скрыто */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  min-width: 240px;
  margin: 0; padding: 8px 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-radius: 10px;
  z-index: 20;
}
.primary-menu .sub-menu li { width: 100%; }
.primary-menu .sub-menu a { display: block; padding: 10px 14px; font-weight: 600; }

/* показать подменю на десктопе при ховере/фокусе */
@media (hover: hover) {
  .primary-menu .menu > li:hover > .sub-menu,
  .primary-menu .menu > li:focus-within > .sub-menu { display: block; }
}

/* кнопка-стрелка у пунктов с подменю (мобайл) */
.primary-menu .submenu-toggle {
  display: none;
  margin-left: 6px;
  border: 0; background: none; cursor: pointer; line-height: 1;
}
.primary-menu .submenu-toggle:after { content: "▾"; font-size: 14px; }

/* мобильное поведение: раскрываем по клику */
@media (max-width: 900px) {
  .primary-menu .menu { flex-direction: column; gap: 10px; align-items: stretch; }
  .primary-menu .menu > li { padding-right: 34px; }
  .primary-menu .submenu-toggle { display: inline-block; }
  .primary-menu .menu > li.open > .sub-menu { display: block; position: static; box-shadow: none; border-radius: 8px; }
  .primary-menu .sub-menu a { padding: 10px 12px; }
}
