
/* LokmanDemir V8.5 — Mobile layer */
html{overflow-x:hidden}
body{overflow-x:hidden}
img{max-width:100%;height:auto}
.mobile-menu-check,.mobile-menu-button,.mobile-nav{display:none}

.v85-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.v85-footer-inner span:last-child{opacity:.65;font-size:11px}

/* Tablet */
@media (max-width:900px){
  .wrap{width:auto!important;max-width:none!important;margin-left:18px!important;margin-right:18px!important}
  .desktop-nav{gap:16px}
  .grid,.home-grid,.content-grid,.detail-grid,.two-col,.detail-layout{grid-template-columns:1fr!important}
  .hero{min-height:auto!important}
  .profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Phone */
@media (max-width:700px){
  body{font-size:15px}
  .wrap{margin-left:14px!important;margin-right:14px!important;padding-left:0!important;padding-right:0!important}

  .v8-header{position:sticky;top:0;z-index:1000}
  .v8-nav{min-height:62px!important;position:relative;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
  .v8-brand{min-width:0}
  .brand-symbol{width:32px!important;height:32px!important;min-width:32px!important}
  .brand-text{font-size:19px!important}
  .desktop-nav,.adminlink{display:none!important}
  .nav-actions{margin-left:auto;display:flex!important;align-items:center!important;gap:8px!important}
  .nav-search{width:38px!important;height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important}

  .mobile-menu-check{display:block;position:absolute;opacity:0;pointer-events:none}
  .mobile-menu-button{display:flex;width:40px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:9px;align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer}
  .mobile-menu-button span{display:block;width:17px;height:2px;border-radius:3px;background:#fff;transition:.2s}
  .mobile-menu-check:checked + .mobile-menu-button span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .mobile-menu-check:checked + .mobile-menu-button span:nth-child(2){opacity:0}
  .mobile-menu-check:checked + .mobile-menu-button span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

  .mobile-nav{position:absolute;display:none;left:0;right:0;top:62px;background:#0b1220;border-top:1px solid rgba(255,255,255,.08);border-radius:0 0 14px 14px;padding:8px;box-shadow:0 18px 35px rgba(0,0,0,.18)}
  .mobile-menu-check:checked ~ .mobile-nav{display:block}
  .mobile-nav a{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 13px;color:#fff!important;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.07);font-size:14px}
  .mobile-nav a:last-child{border-bottom:0}
  .mobile-nav b{color:#f6c445;font-weight:700}

  /* Home / hero */
  .hero{margin-top:14px!important;padding:24px 20px!important;border-radius:16px!important;display:block!important;min-height:0!important}
  .hero h1{font-size:31px!important;line-height:1.04!important;letter-spacing:-1.2px!important}
  .hero p{font-size:13px!important;line-height:1.55!important}
  .hero .quote,.hero-quote{margin-top:24px!important;padding-top:18px!important;border-top:1px solid rgba(255,255,255,.12)!important;border-left:0!important}
  .search,.search-box,.hero-search{width:100%!important;display:flex!important}
  .search input,.search-box input,.hero-search input{min-width:0!important;flex:1!important;font-size:16px!important}
  .search button,.search-box button,.hero-search button{min-height:44px!important;padding-left:16px!important;padding-right:16px!important}
  .chips,.quick-links{display:flex!important;flex-wrap:wrap!important;gap:7px!important}

  /* Generic cards/lists */
  .grid,.home-grid,.content-grid,.detail-grid,.two-col,.detail-layout,.profile-grid,.directory-grid{grid-template-columns:1fr!important}
  .card,.panel,.content-card,.detail-card{border-radius:14px!important}
  .page-head{padding-top:22px!important;padding-bottom:18px!important}
  .page-head h1{font-size:29px!important;line-height:1.1!important}
  .page-head p{font-size:13px!important}
  .list-row,.archive-row{padding:14px 13px!important}
  .list-row h2,.archive-row h2{font-size:14px!important;line-height:1.35!important}

  /* Song / poem detail readability */
  .detail-shell,.detail-main,.lyrics-card,.poem-card,.reading-card{padding:19px!important;border-radius:15px!important}
  .detail-shell h1,.detail-main h1,.lyrics-card h1,.poem-card h1{font-size:27px!important;line-height:1.12!important;letter-spacing:-.7px!important}
  .lyrics,.lyrics-content,.poem-text,.reading-content{font-size:17px!important;line-height:1.75!important;overflow-wrap:anywhere!important}
  .lyrics p,.lyrics-content p,.poem-text p,.reading-content p{margin:0 0 .75em!important}
  aside,.detail-sidebar{width:100%!important;position:static!important}

  /* V8.3/V8.4 profile pages */
  .breadcrumb{font-size:10px!important;gap:6px!important;white-space:normal!important}
  .profile-v84{padding:16px!important;border-radius:15px!important}
  .profile-v84-main{gap:13px!important}
  .profile-v84-photo{width:66px!important;height:66px!important}
  .profile-v84 h1{font-size:23px!important;overflow-wrap:anywhere}
  .profile-v84-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bio-v84,.works-v84{padding:16px!important;border-radius:15px!important}
  .works-v84-list a{grid-template-columns:34px minmax(0,1fr) 16px!important;padding:12px 0!important}
  .works-v84-list strong{font-size:13px!important;line-height:1.35!important}
  .directory-hero{padding:18px!important;gap:12px!important}
  .directory-hero h1{font-size:27px!important}
  .directory-total{min-width:72px!important}
  .directory-card{grid-template-columns:44px minmax(0,1fr) 16px!important}

  /* Pagination */
  .pagination{display:grid!important;grid-template-columns:1fr auto 1fr!important;width:100%!important}
  .pagination a:first-child{text-align:left}
  .pagination a:last-child{text-align:right}
  .pagination a,.pagination span{white-space:nowrap!important}

  /* Footer */
  footer{margin-top:34px!important}
  .v85-footer-inner{min-height:76px;flex-direction:column;justify-content:center;text-align:center;gap:5px;font-size:12px}
}

/* Small phones */
@media (max-width:390px){
  .brand-text{font-size:17px!important}
  .hero h1{font-size:28px!important}
  .profile-v84-main{align-items:flex-start!important}
  .profile-v84-photo{width:58px!important;height:58px!important}
  .profile-v84-facts{grid-template-columns:1fr!important}
  .directory-hero{display:block!important}
  .directory-total{margin-top:14px!important;width:100%!important}
}
