/**
Plugin Name: solotutes-frontend
Author: Prakash Joshi
Author URI: https://prakashjoshi.in
Description: Custom styles for solotutes-frontend plugin
Stylesheet for: test-single template (single-test.php)
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solotutes-frontend 
*/
.test-single { background: transparent; }

.st-breadcrumb { margin-bottom: 20px; font-size: 14px; color: var(--text-muted); }
.st-breadcrumb a { color: var(--primary-color); text-decoration: none; font-weight: 500; }

.test-cover img { width: 100%; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Entry Header */
.entry-header { background: var(--card-bg); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.test-title { font-size: 26px; font-weight: 800; margin: 0 0 15px 0; color: var(--text-dark); }
.st-meta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: #f8fafc;
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 25px;
}

.st-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: #64748b;
}

.st-meta-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.st-meta-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.st-meta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Action Buttons Base */
.st-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Inner Badge for Counts */
.meta-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Attempt Button Theme (Green/Success) */
.attempt-btn {
  background: #eefaf0;
  color: #10b981;
  border: 1px solid #10b981;
}
.attempt-btn:hover {
  background: #10b981;
  color: #fff;
}
.attempt-btn .meta-badge {
  background: rgba(16, 185, 129, 0.15);
  color: inherit;
}
.attempt-btn:hover .meta-badge {
  background: rgba(255, 255, 255, 0.3);
}

/* Download Button Theme (Primary Brand) */
.download-btn {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(10, 99, 232, 0.2);
}
.download-btn:hover {
  background: #0747a6;
  box-shadow: 0 6px 15px rgba(10, 99, 232, 0.3);
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .st-meta-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .st-meta-actions {
    width: 100%;
  }
  .st-action-btn {
    flex: 1; /* Makes buttons 50-50 width on mobile */
  }
}
/* =========================================
   UX: CHOOSE YOUR MODE (PRACTICE VS EXAM)
========================================= */
.st-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0 40px 0;
}

.st-mode-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.st-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.st-mode-card.exam-mode {
    background: linear-gradient(135deg, var(--primary-color), #06409e);
    color: #fff;
    border: none;
}

.mode-icon {
    font-size: 24px;
    margin-bottom: 15px;
    background: #f0f4f8;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.exam-mode .mode-icon {
    background: rgba(255, 255, 255, 0.2);
}

.mode-text h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.exam-mode .mode-text h4 {
    color: #fff;
}

.mode-text p {
    font-size: 14px;
    margin: 0 0 25px 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.exam-mode .mode-text p {
    color: rgba(255, 255, 255, 0.9);
}

.mode-btn {
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    width: 100%;
    text-align: center;
    transition: 0.2s;
}

.practice-btn {
    background: #f8fafc;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.practice-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.exam-btn {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.exam-btn:hover {
    background: #ffca28; /* Highlighted Action Color */
    color: #111;
}

@media(max-width: 768px){
    .st-mode-selector {
        grid-template-columns: 1fr;
    }
}

/* Toolbar: Lang Select */
.st-quiz-toolbar { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg); padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.st-lang-select { display: flex; align-items: center; width: 100%; }
.st-lang-select select { padding: 8px 12px; border-radius: 6px; border: 1px solid #ccc; font-weight: 600; color: var(--text-dark); outline: none; cursor: pointer; margin-left: auto; }
.st-lang-select label { font-weight: 600; color: var(--text-dark); font-size: 15px; }

/* Language Hide Logic */
body.lang-en .st-hi-text, body.lang-en .st-separator { display: none !important; }
body.lang-hi .st-en-text.has-hi, body.lang-hi .st-separator { display: none !important; }
.st-en-text { display: inline; }
.st-hi-text { display: inline; color: #555; font-weight: 500; }
.st-separator { display: inline; margin: 0 4px; color: #999; }

/* Ad Slots for Monetization */
.st-ad-slot { background: #fdfdfd; border: 1px dashed #ccc; text-align: center; padding: 15px; color: #999; font-size: 13px; margin: 25px 0; border-radius: 8px; clear:both; }

/* Score Box */
.st-score-box { background: #eef2fa; padding: 15px 20px; margin: 20px 0; font-size: 18px; border-left: 5px solid var(--primary-color); border-radius: 8px; font-weight: 600; color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; }

/* Questions Area */
.test-heading { font-size: 24px; margin: 30px 0 20px; color: var(--text-dark); font-weight: 800; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.test-list { display: flex; flex-direction: column; gap: 25px; }
.st-question { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 35px 25px 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: relative; transition: all 0.3s; }
.st-question.done { border-color: #d1d5db; opacity: 0.9; }

.st-remark-badge { position: absolute; top: 12px; right: 15px; background: #eef2fa; color: var(--primary-color); font-size: 12px; padding: 5px 12px; border-radius: 20px; font-weight: 700; letter-spacing: 0.5px; }

.st-q-desc { background: #f8f9fa; padding: 15px; border-radius: 8px; font-size: 15px; margin-bottom: 20px; border-left: 3px solid #ccc; color: #444; }
.st-q-title { font-weight: 700; font-size: 18px; margin-bottom: 20px; color: var(--text-dark); line-height: 1.5; }
.st-q-img, .st-opt-img { max-width: 200px; margin: 10px 0; height: auto; border-radius: 6px; border: 1px solid #eee; }

/* Options */
.st-options label { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 18px; border: 2px solid #e2e8f0; border-radius: 30px; cursor: pointer; transition: 0.3s; background: #fafafa; }
.st-options label:hover { background: #f0f6ff; border-color: var(--primary-color); }
.st-options input { display: none; }
.opt-label { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; width: 100%; }
.opt-circle { width: 34px; height: 34px; border-radius: 50%; background: #eef2fa; color: var(--primary-color); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: 0.3s; }

.st-options label.correct { background: #eefaf0; border-color: var(--success-color); }
.st-options label.correct .opt-circle { background: var(--success-color); color: #fff; }
.st-options label.incorrect { background: #fdf0f1; border-color: var(--danger-color); }
.st-options label.incorrect .opt-circle { background: var(--danger-color); color: #fff; }

.st-explanation { margin-top: 15px; padding: 15px; background: #fff8e1; border-left: 4px solid #ffc107; border-radius: 6px; display: none; font-size: 15px; color: #333; line-height: 1.6; }
.st-feedback { margin-top: 15px; padding: 12px 15px; border-radius: 6px; font-size: 15px; font-weight: 600; display: none; }
.st-feedback.correct { background: #d4f8d4; color: #155724; }
.st-feedback.incorrect { background: #ffd6d6; color: #721c24; }

#completionBox { margin-top: 40px; padding: 25px; background: #eefaf0; border-radius: 12px; text-align: center; border: 2px solid var(--success-color); font-size: 18px; color: #155724; display: none; }
#progressBox { margin-top: 25px; padding: 20px; background: #eef2fa; border-radius: 12px; display: none; text-align: center; font-size: 16px; line-height: 1.6; color: var(--primary-color); }

/* Post Navigation */
.st-nav { display: flex; justify-content: space-between; margin: 40px 0; gap: 15px; }
.st-nav a { display: flex; align-items: center; justify-content: center; padding: 14px 25px; border-radius: 8px; background: var(--card-bg); border: 2px solid var(--border-color); text-decoration: none; color: var(--text-dark); font-weight: 600; transition: 0.3s; flex: 1; text-align: center; }
.st-nav a:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

/* Similar Tests */
.test-similar { margin: 50px 0 30px; padding-top: 40px; border-top: 1px solid #eee; }
.test-similar h3 { font-size: 24px; margin-bottom: 25px; text-align: center; font-weight: 800; color: var(--text-dark); }
.test-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.test-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: 0.3s; }
.test-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-color: #ccc; }
.test-card-img { width: 100%; height: 160px; object-fit: cover; }
.test-card-body { padding: 20px; }
.test-card-title { margin: 0 0 8px 0; font-size: 17px; line-height: 1.4; font-weight: 700; }
.test-card-title a { color: var(--text-dark); text-decoration: none; transition: 0.2s; }
.test-card-title a:hover { color: var(--primary-color); }
.test-card-meta { font-size: 13px; color: var(--text-muted); margin: 0; }

/* MOBILE FIXES */
@media(max-width:768px){
  .entry-header { padding: 20px; }
  .test-title { font-size: 22px; }
  .st-assessment-banner { padding: 20px 15px; }
  .st-assessment-banner h3 { font-size: 20px; }
  .assessment-btn { font-size: 14px; padding: 10px 20px; }
  .st-quiz-toolbar { padding: 12px 15px; }
  .st-lang-select label { display: none; }
  .st-lang-select select { width: 100%; }
  .st-score-box { flex-direction: column; gap: 10px; }
  .st-question { padding: 35px 15px 15px; }
  .st-options label { padding: 10px 15px; }
  .opt-label { font-size: 14px; }
  .st-nav { flex-direction: column; }
}