/*
Theme Name: Quizes
Theme URI: http://moufker.com/
Author: Ahmad Al
Author URI: http://moufker.com
Description: A lightweight, custom WordPress theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moufker
Tags: custom-menu, featured-images, translation-ready
*/
/* Simple Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
  word-wrap: break-word;
  font-style: normal;
  text-wrap: auto;
}

body {
    background-color:#F0F2F5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}
:root {
    --bg: #ffffff;
    --text: #111111;
    --accent: #007aff; /* Modern Blue */

    --accent: #FF3D71;
    --primary: #7000FF;
    --surface: #ffffff;
    --body-bg: #F0F2F5;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --radius-lg: 24px;
    --radius-md: 16px;
    --primary: #1a1a1a;
    --accent: #e63946;
    --text: #2d3436;
    --light-bg: #f9f9f9;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);

    }
.site-header {
    position: sticky;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

/* LOGO */
.logo a {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* DESKTOP NAV */
.nav-wrapper ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin:0;
}

.nav-wrapper a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-wrapper a:hover { color: var(--accent); }

/* BURGER BUTTON */
.burger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: 0.3s;
}

/* RESPONSIVE MOBILE MENU */
@media (max-width: 768px) {
    .burger { display: block; }

    .nav-wrapper {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--bg);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        display: none;
    }

    .nav-wrapper.active { right: 0; display: flex; }

    .nav-wrapper ul {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .nav-wrapper a { font-size: 1.8rem; font-weight: 700; }

    /* ANIMATE BURGER TO X */
    .active-btn .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .active-btn .burger span:nth-child(2) { opacity: 0; }
    .active-btn .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}




#HomeDo .hub-container { max-width: 1200px; margin: 0 auto;  }

/* --- Stylish Header --- */
#HomeDo .hub-header {
    background: linear-gradient(225deg, #7000ff 0%, #4e00b3 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
    margin-bottom: -60px;
    box-shadow: 0 20px 40px rgba(112, 0, 255, 0.2);
}

#HomeDo .hub-header h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0; font-weight: 800; letter-spacing: -2px; }
#HomeDo .hub-header p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 2rem;
}
/* --- Enhanced Filter Scroller --- */
#HomeDo .filter-wrapper {

    z-index: 100;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

#HomeDo .filter-scroller {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.4);
}

#HomeDo .filter-scroller::-webkit-scrollbar { display: none; } /* Chrome/Safari */

#HomeDo .filter-tab {
    min-width: 180px;
    padding: 12px;
    border-radius: 40px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#HomeDo .filter-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(112, 0, 255, 0.3);
}

/* --- Grid System --- */
#HomeDo .quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding-top: 80px;
}

#HomeDo .quiz-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

#HomeDo .quiz-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

#HomeDo .card-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

#HomeDo .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
#HomeDo .quiz-card:hover .card-img-wrap img { transform: scale(1.1); }

#HomeDo .views-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

#HomeDo  .card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
#HomeDo  .card-body h2{
  margin-top:0;
}
#HomeDo  .cat-tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#HomeDo .quiz-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 20px;
}

#HomeDo .card-btn {
    margin-top: auto;
    background: #F1F5F9;
    color: var(--text-dark);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

#HomeDo .quiz-card:hover .card-btn {
    background: var(--primary);
    color: white;
}

/* Filter Logic */
#HomeDo .quiz-card.hidden { display: none; }

@media (max-width: 768px) {
    #HomeDo .hub-header { border-radius: 0; padding: 60px 20px; }
    #HomeDo .quiz-grid { grid-template-columns: 1fr; }
    #HomeDo .filter-wrapper { top: 10px; width: 95%; margin: 0 auto; }
}

.blob {
    z-index: 0;
    animation: move 11s infinite alternate;
}
      @keyframes move {
          from { transform: translate(-10%, -10%); }
          to { transform: translate(20%, 20%); }
      }

      /* CTA Card */
      .cta-card {
          position: relative;
          z-index: 1;
          background: rgba(255, 255, 255, 0.1);
          backdrop-filter: blur(15px);
          -webkit-backdrop-filter: blur(15px);
          border: 1px solid rgba(255, 255, 255, 0.2);
          padding: 1rem;
          border-radius: 24px;
          text-align: center;
          max-width: 600px;
          box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
          animation: float 6s ease-in-out infinite;
          margin: 0 auto;
      }

      @keyframes float {
          0%, 100% { transform: translateY(0); }
          50% { transform: translateY(-20px); }
      }

      .cta-card h2 {
          color: #ffffff;
          font-size: 1rem;
          margin-bottom: 1rem;
          letter-spacing: 3px;
      }

      #HomeDo .hub-header span {
          opacity: 0.8;
          font-size: .7rem;
          margin-top: 10px;
      }

      /* The Button */
      .quiz-btns {
        text-decoration: none;
          background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
          color: #003366;
          padding: 18px;
          font-size: .7rem;
          font-weight: bold;
          border: none;
          border-radius: 50px;
          cursor: pointer;
          transition: all 0.3s ease;
          text-transform: uppercase;
          letter-spacing: 1px;
          box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
          position: relative;
          margin-top: 1rem;
          display: block;
          width: 100%;
      }

      .quiz-btns:hover {
          transform: scale(1.05);
          box-shadow: 0 6px 25px rgba(0, 242, 254, 0.6);
      }

      /* Pulsing effect */
      .quiz-btns::after {
          content: '';
          position: absolute;
          top: 0; left: 0; right: 0; bottom: 0;
          border-radius: 50px;
          border: 2px solid var(--accent-color);
          animation: pulse 2s linear infinite;
      }

      @keyframes pulse {
          0% { transform: scale(1); opacity: 1; }
          100% { transform: scale(1.5); opacity: 0; }
      }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


.site-content {
    background: #fff;
    min-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
  .site-content {

      min-height: 87vh;
  }
}
/* Comments Section Styling */
.comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.comment-list {
    list-style: none;
    margin-bottom: 30px;
}

.comment-body {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Form Styling */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

#submit {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
main#SiteSingle .quiz-container-content {
    min-height: 89vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
main#SiteSingle .notloginNote {
    min-height: 89vh;
    display: flex;
    align-items: center;
    justify-content: center;
}





/* --- Quiz Archive Theme --- */
.quiz-archive {
  background: #f0f2f5; /* Light grey background to make cards pop */
  padding-bottom: 80px;
}

.quiz-archive .quiz-hero {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 50px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

.quiz-archive .quiz-page-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.quiz-archive .quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.quiz-archive .quiz-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
}

.quiz-archive .quiz-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Image & Badge */
.quiz-archive .quiz-image-wrapper {
  position: relative;
  height: 180px;
}

.quiz-archive .quiz-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-archive .quiz-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff4757;
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* Details */
.quiz-archive .quiz-details {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.quiz-archive .quiz-cat {
  font-size: 0.8rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
}

.quiz-archive .quiz-title {
  font-size: 1.25rem;
  margin: 10px 0 20px;
  line-height: 1.4;
  min-height: 3.5em; /* Keeps buttons aligned */
}

.quiz-archive .quiz-title a {
  text-decoration: none;
  color: #1a1a1a;
}

/* START BUTTON */
.quiz-archive .quiz-btn {
  display: block;
  background: #6366f1;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.2s;
  margin-top: auto;
}

.quiz-archive .quiz-btn:hover {
  background: #4f46e5;
}

/* Pagination Styling */
.quiz-archive .quiz-pagination .nav-links {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 15px;
}












.mag-container {
    background: #fff;
    padding: 60px 20px;
    font-family: 'Georgia', serif; /* Classic editorial feel */
}

/* Hero Section */
.mag-hero {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.mag-cat a {
    color: var(--accent);
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 0.75rem;
}

.mag-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin: 20px 0;
    letter-spacing: -1px;
}

/* Byline Styling */
.mag-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: sans-serif;
    margin-top: 30px;
}

.author-avatar img {
    border-radius: 50%;
    border: 2px solid #eee;
}

.author-name a {
    display: block;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.post-date { color: #888; font-size: 0.85rem; }

/* Content Visuals */
.mag-featured-image {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.mag-featured-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.mag-entry {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text);
}

/* Related Posts - The "Great" Part */
.mag-footer {
    max-width: 1000px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 2px solid #000;
}

.related-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.accent-line { width: 50px; height: 4px; background: var(--accent); }

.mag-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mag-related-card {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.mag-related-img {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mag-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.mag-related-card:hover img { transform: scale(1.05); }

.mag-related-body h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 10px;
}

@media (max-width: 768px) {
    .mag-related-grid { grid-template-columns: 1fr; }
    .mag-title { font-size: 2.2rem; }
}
