/*
Theme Name: MCQHome Theme
Description: A WordPress theme for MCQ-based educational platform (Safe Mode)
Version: 1.0.0
Author: MCQHome Team
Text Domain: mcqhome
*/

/* Basic styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

.site-main {
  min-height: 400px;
}

article {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

article h1,
article h2 {
  color: #333;
}

article a {
  color: #0073aa;
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

/* Icon and Image Improvements */
.icon-small {
  width: 16px !important;
  height: 16px !important;
}

.icon-medium {
  width: 24px !important;
  height: 24px !important;
}

.icon-large {
  width: 32px !important;
  height: 32px !important;
}

/* Fix oversized empty state icons */
.no-mcq-sets svg,
.no-institutions svg,
.no-questions svg {
  width: 48px !important;
  height: 48px !important;
  opacity: 0.6;
}

/* Institution logo improvements */
.institution-logo img,
.institution-logo-img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

.institution-archive-logo {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
}

.institution-placeholder {
  width: 60px;
  height: 60px;
  background-color: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid #e5e7eb;
}

/* Archive institution logos */
.institution-card .institution-logo img {
  width: 60px !important;
  height: 60px !important;
}

.institution-card .institution-logo div {
  width: 60px !important;
  height: 60px !important;
}

.institution-card .institution-logo svg {
  width: 24px !important;
  height: 24px !important;
}

/* MCQ Set thumbnails */
.mcq-set-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Dashboard icons */
.dashboard-card svg {
  width: 20px !important;
  height: 20px !important;
}

/* Meta info icons */
.mcq-set-meta svg,
.institution-meta svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}

/* Assessment interface improvements */
.assessment-container {
  max-width: 900px;
}

.question-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-options label {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.question-options label:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.question-options input[type="radio"]:checked + span {
  color: #2563eb;
  font-weight: 500;
}

.question-options input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.1);
}

/* Results page improvements */
.results-container {
  max-width: 700px;
}

.score-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 32px;
}

.score-display .text-6xl {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card improvements */
.mcq-set-card,
.institution-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mcq-set-card:hover,
.institution-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Button improvements */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

/* Navigation improvements */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.site-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 32px 0;
  margin-top: 48px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .institution-logo img {
    width: 60px !important;
    height: 60px !important;
  }

  .question-item {
    padding: 16px;
  }

  .score-display {
    padding: 24px;
  }

  .score-display .text-6xl {
    font-size: 2.5rem;
  }
}

/* Global icon size fixes */
svg {
  max-width: 24px;
  max-height: 24px;
}

/* Override Tailwind's large icon classes */
.h-12.w-12 {
  width: 32px !important;
  height: 32px !important;
}

.h-16.w-16 {
  width: 48px !important;
  height: 48px !important;
}

.h-20.w-20 {
  width: 60px !important;
  height: 60px !important;
}

/* Small icons for inline use */
.text-sm svg,
.mcq-set-meta svg,
.institution-meta svg {
  width: 16px !important;
  height: 16px !important;
}

/* Medium icons for cards */
.mcq-set-card svg,
.institution-card svg {
  width: 20px !important;
  height: 20px !important;
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.875rem;
}
h3 {
  font-size: 1.5rem;
}

/* Link improvements */
a {
  color: #2563eb;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

/* Spacing improvements */
.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Grid improvements */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Mobile responsive */
@media (max-width: 768px) {
  .institution-logo img,
  .institution-logo-img {
    width: 60px !important;
    height: 60px !important;
  }

  .question-item {
    padding: 16px;
  }

  .score-display {
    padding: 24px;
  }

  .score-display .text-6xl {
    font-size: 2.5rem;
  }

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  h1 {
    font-size: 1.875rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}
