/* Poslanikova sira - Main Styles */

:root {
    --primary: #2a7c6f;
    --primary-dark: #1e5a50;
    --secondary: #d4a574;
    --accent: #f4a261;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

/* Custom header logo styling */
.header .logo-icon {
    /* Remove default gradient background when displaying logo image */
    background: none;
    box-shadow: none;
}

.header .logo-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 124, 111, 0.05) 0%, rgba(212, 165, 116, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Add subtle separation from content */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.arabic-text {
    font-size: 2rem;
    color: white;
    font-family: 'Amiri', serif;
}

/* Custom style for quiz name on results page. We avoid using .arabic-text
   here because .arabic-text sets text color to white, which is hard to
   read on light backgrounds. */
.quiz-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.user-icon {
    font-size: 1.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-points {
    font-size: 0.875rem;
    color: var(--text-light);
    padding-left: var(--spacing-sm);
    border-left: 2px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-btn .icon {
    font-size: 1.1rem;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.logout-btn:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Main Content */
.main-content {
    padding: var(--spacing-xxl) 0;
}

.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.8;
}

.stats-overview {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Quizzes Section */
.quizzes-section {
    margin-top: var(--spacing-xxl);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.quizzes-grid {
    display: grid;
    /* Always show two columns for quizzes. On smaller screens the cards will stack due to container width constraints */
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.quiz-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.quiz-icon {
    font-size: 2.5rem;
}

.quiz-difficulty {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #ffc107;
    font-size: 1rem;
}

.quiz-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.quiz-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.quiz-info {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-item .icon {
    font-size: 1.1rem;
}

.start-quiz-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-quiz-btn:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f3d3e, #145c5f);
    color: rgba(255,255,255,0.92);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xxl);
    border-top: 1px solid rgba(255,255,255,0.18);
}

/* Support section inside footer */
.support-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Individual paragraphs in footer */
.support-section p {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.coffee-text {
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.qr-code {
    width: 120px;
    height: auto;
    margin: var(--spacing-md) auto;
    display: block;
}

.support-link {
    color: #f9f6ef;
    text-decoration: underline;
    text-decoration-color: rgba(212,175,55,0.6);
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #ffffff;
    text-decoration-color: rgba(212,175,55,0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        gap: var(--spacing-md);
    }

    .stat-item {
        min-width: 100px;
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }
}
/* =========================
   SVEČANO ZAGLAVLJE
========================= */

.header {
    position: relative;
    background: linear-gradient(135deg, #0f3d3e, #145c5f);
    color: #ffffff;
    padding: 32px 0 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* suptilni ornament / svjetlo */
.header::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.18),
        transparent 70%
    );
    pointer-events: none;
}

/* LOGO BLOK */
.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-img {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}

/* NASLOV */
.logo-text h1 {
    font-family: "Amiri", serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: #f9f6ef;
}

/* PODNASLOV */
.logo-text .subtitle {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
}

/* NAV DUGMAD U HEADERU */
.nav-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(6px);
}

.nav-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.6);
}

/* USER INFO */
.user-info {
    color: rgba(255,255,255,0.9);
}
/* Centered welcome text – elegant version */
.welcome-section {
  margin: 28px 0 36px;
}

.welcome-centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.welcome-lead {
  margin: 0;
  font-family: "Amiri", serif;
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(30, 40, 45, 0.9);
}

/* Estetski razdjelnik */
.welcome-divider {
  margin: 22px auto 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.9),
    transparent
  );
}
/* Centered welcome text – elegant version */
.welcome-section {
  margin: 28px 0 36px;
}

.welcome-centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}

.welcome-lead {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(30, 40, 45, 0.9);
}

/* Estetski razdjelnik */
.welcome-divider {
  margin: 22px auto 0;
  width: 440px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.9),
    transparent
  );
}
