/* 
 * EngPract V2 Ultra - IELTS Premium Design System
 * Colors: Navy (#002366), IELTS Red (#E0202F), White (#FFFFFF)
 */

:root {
  --navy: #002366;
  --red: #E0202F;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-border: #e2e8f0;
  --text-dark: #1a202c;
  --text-muted: #718096;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 8px;
}

body {
  margin: 0; padding: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--gray-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* Navbar - Professional & Clean */
.ep-navbar {
    background: white;
    border-bottom: 2px solid var(--navy);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; z-index: 1000;
}
.ep-logo { font-size: 1.5rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.ep-logo i { color: var(--red); }

.ielts-btn-outline {
    background: transparent; color: var(--navy); font-weight: 700;
    border: 2px solid var(--navy); padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
}

/* Page Headers */
.ielts-page-header { margin-bottom: 2rem; }
.ielts-title { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 0; }
.ielts-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-top: 8px; }

/* Grid & Cards */
.ielts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.ielts-card { background: white; border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: 0.3s; }
.ielts-card-interactive:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Practice UI (IELTS Exam Style) */
.ielts-practice-layout { max-width: 800px; margin: 0 auto; }
.ielts-test-header { text-align: center; border-bottom: 1px solid var(--gray-border); padding-bottom: 2rem; margin-bottom: 2rem; }
.ielts-live-badge { background: var(--red); color: white; font-size: 0.75rem; font-weight: 900; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px; }

.ielts-q-display { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-top: 1.5rem; }

/* Timer & Record */
.ielts-timer-circle {
    width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--gray-border);
    margin: 2rem auto; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 900; color: var(--navy); transition: 0.3s;
}
.ielts-timer-circle.recording { border-color: var(--red); color: var(--red); animation: ieltsPulse 2s infinite; }

@keyframes ieltsPulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

.ielts-btn-record {
    width: 80px; height: 80px; border-radius: 50%; border: none;
    background: var(--navy); color: white; font-size: 2rem; cursor: pointer; transition: 0.3s;
}
.ielts-btn-record.recording { background: var(--red); }

/* Score Bars */
.ielts-band-card { margin-bottom: 1.5rem; padding: 1.5rem; background: var(--gray-light); border-radius: var(--radius); }
.ielts-band-card .header { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 10px; }
.bar-bg { height: 10px; background: #ddd; border-radius: 5px; overflow: hidden; margin-bottom: 15px; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 5px; transition: 1s ease-out; }

/* General Controls */
.ielts-btn-primary, .ielts-btn-red {
    background: var(--red); color: white; border: none; padding: 12px 24px; border-radius: var(--radius);
    font-weight: 800; font-size: 1rem; cursor: pointer;
}
.ielts-btn-red:hover { background: #b01a25; }

/* Mobile Adaptations */
@media (max-width: 600px) {
    .ep-navbar { padding: 0.75rem 1rem; }
    .ielts-title { font-size: 1.6rem; }
    .ielts-grid { grid-template-columns: 1fr; }
}
