/*
Theme Name: ewebbd-premium
Theme URI: https://ewebbd.com/
Author: Maruf Hossain
Author URI: https://ewebbd.com/
Description: A professional, lightning-fast WordPress theme for Ewebbd.com — the premium subdomain platform. Features a modern sticky header, hero section with live subdomain availability checker, features grid, how-it-works steps, CTA banner and a multi-column footer. Fully editable through the WordPress Customizer (Appearance → Customize → Ewebbd Homepage Settings) and becomes 100% ready on activation (auto menus, legal pages, permalinks). Built with clean, native HTML5/CSS3/vanilla JS — no frameworks, optimized for speed and Core Web Vitals.
Version: 1.3.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ewebbd-premium
Tags: business, one-page, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   WordPress-specific additions & overrides
   (Main design system lives in /assets/css/main.css)
   ============================================================ */

/* Active menu item from WordPress (current-menu-item) */
.nav-list li.current-menu-item > a.nav-link,
.nav-list li.current_page_item > a.nav-link {
  color: #FFFFFF;
  background: rgba(56, 189, 248, .14);
}
.nav-list li.current-menu-item > a.nav-link::after,
.nav-list li.current_page_item > a.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(135deg, #2F80FF, #38BDF8);
}
.mobile-menu li.current-menu-item > a { color: #fff; background: rgba(56,189,248,.12); }

/* Admin bar spacing */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-menu { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* Blog / archive content area */
.blog-wrap { padding: calc(var(--header-h) + 3.5rem) 0 4rem; min-height: 70vh; }
.blog-page-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #0F172A; font-weight: 800; margin-bottom: 2rem; }
.post-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(10,31,60,.12); }
.post-card h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.post-card h2 a { color: #0F172A; transition: color .25s; }
.post-card h2 a:hover { color: #2F80FF; }
.post-meta { font-size: .82rem; color: #64748B; margin-bottom: .8rem; }
.post-meta a { color: #2F80FF; }
.post-excerpt { color: #475569; font-size: .96rem; }
.read-more { display: inline-block; margin-top: .9rem; font-weight: 700; color: #2F80FF; font-size: .92rem; }
.read-more:hover { color: #0A1F3C; }
.post-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 1rem; }
.post-thumb img { width: 100%; height: auto; display: block; }

/* Single post content typography */
.entry-content { color: #334155; font-size: 1.02rem; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: #0F172A; margin: 1.4em 0 .6em; line-height: 1.25; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: #2F80FF; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content blockquote {
  border-left: 4px solid #2F80FF;
  background: #F5F8FC;
  padding: 1rem 1.3rem;
  border-radius: 0 10px 10px 0;
  margin: 1.3em 0;
  color: #475569;
  font-style: italic;
}

/* Pagination */
.pagination-wrap { margin-top: 2rem; }
.pagination-wrap .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.page-numbers {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 .7rem;
  border-radius: 10px; border: 1px solid #E2E8F0;
  font-weight: 700; color: #334155; background: #fff;
  transition: all .25s;
}
.page-numbers:hover { border-color: #2F80FF; color: #2F80FF; }
.page-numbers.current { background: linear-gradient(135deg, #2F80FF, #38BDF8); color: #fff; border-color: transparent; }

/* Comments */
.comments-area { margin-top: 3rem; }
.comments-area h3 { color: #0F172A; margin-bottom: 1.2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 1.2rem; }
.comment-body {
  background: #F5F8FC; border: 1px solid #E2E8F0;
  border-radius: 14px; padding: 1.2rem 1.4rem;
}
.comment-author-name { font-weight: 700; color: #0F172A; }
.comment-metadata { font-size: .8rem; margin-bottom: .5rem; }
.comment-metadata a { color: #64748B; }
.comment-content p { margin: 0; color: #475569; font-size: .95rem; }
.reply { margin-top: .5rem; }
.reply a { font-size: .82rem; font-weight: 700; color: #2F80FF; }
.comment-respond { margin-top: 2rem; }
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  margin-bottom: .9rem;
  background: #fff;
  color: #334155;
}
.comment-respond textarea:focus,
.comment-respond input:focus { outline: 2px solid #2F80FF; border-color: transparent; }
.form-submit .submit {
  background: linear-gradient(135deg, #2F80FF, #38BDF8);
  -webkit-appearance: none; appearance: none;
  background-clip: padding-box;
  color: #fff; border: 0; border-radius: 100px;
  padding: .8rem 2rem; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all .3s;
}
.form-submit .submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,128,255,.4); }

/* Search form */
.search-form { display: flex; gap: .6rem; margin-bottom: 2rem; }
.search-form input[type="search"] {
  flex: 1; padding: .8rem 1.2rem; border-radius: 100px;
  border: 1px solid #E2E8F0; font-family: inherit; font-size: .95rem;
}
.search-form input[type="search"]:focus { outline: 2px solid #2F80FF; border-color: transparent; }

/* 404 */
.error-404 { text-align: center; padding: calc(var(--header-h) + 5rem) 0 5rem; }
.error-404 h1 { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #2F80FF, #38BDF8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-404 p { color: #64748B; margin: 1rem 0 2rem; font-size: 1.05rem; }

/* Widget-ready footer lists (menu fallbacks) */
.site-footer .menu li { margin-bottom: .6rem; }
.site-footer .menu a { color: #9FB3D1; font-size: .92rem; transition: all .3s; display: inline-block; }
.site-footer .menu a:hover { color: #38BDF8; transform: translateX(5px); }

/* Screen reader text (WP standard) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99999;
  background: #2F80FF; color: #fff; padding: .8rem 1.4rem; font-weight: 700;
}
.skip-link:focus { left: 0; }
