@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --primary-color: #0057ff;
  --secondary-color: #0077ff;
  --background-color: #fafafa;
  --text-color: #222;
  --light-text-color: #555;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --max-content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1, h2 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.2rem;
  padding: 0;
  margin-left: 0.25rem;
  transition: color var(--transition-speed);
  user-select: none;
}

.copy-btn:hover {
  color: var(--secondary-color);
}

.question-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.day-block {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px var(--shadow-color);
  padding: 1.5rem;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
  will-change: transform;
  cursor: pointer;
}

.day-block:hover {
  box-shadow: 0 8px 18px rgba(0, 87, 255, 0.3);
  transform: translateY(-5px);
}

.day-title {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  user-select: none;
}

/* Question styling with zoom hover */
.question {
  border-radius: var(--border-radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
  cursor: default;
  background-color: white;
  will-change: transform;
}

.question:hover {
  box-shadow: 0 10px 25px rgba(0, 87, 255, 0.3);
  transform: translateY(-6px) scale(1.03);
}

.question.current {
  border-left: 5px solid var(--primary-color);
}

.question.past {
  opacity: 0.85;
}

.question > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  margin-bottom: 10px;
}

.section-icon {
  font-size: 1.2rem;
}

.question p {
  margin: 0.4rem 0 1rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.4;
}

.testcases {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--light-text-color);
}

.testcases summary {
  font-weight: 600;
  cursor: pointer;
  outline-offset: 2px;
  user-select: none;
}

.testcase {
  margin-top: 0.75rem;
  padding-left: 8px;
}

.testcase pre {
  background: #f0f2f5;
  border-radius: 5px;
  padding: 6px 10px;
  overflow-x: auto;
  margin: 0.25rem 0 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
}

.video-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-speed);
}

.video-link:hover {
  border-color: var(--primary-color);
}

.notes {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--light-text-color);
  background: #f9faff;
  border-left: 4px solid var(--primary-color);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-style: italic;
}

.notes img {
  border-radius: var(--border-radius);
  max-width: 100%;
  display: block;
  margin-top: 0.5rem;
}

details > summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
  user-select: none;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .day-block {
    padding: 2rem;
  }
}

/* Collapsible instructions specific styling */
.instructions details {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 1rem;
}

.instructions summary {
  font-weight: 600;
  font-size: 1.5rem;
  cursor: pointer;
  list-style: none;
  outline-offset: 2px;
  user-select: none;
  padding-bottom: 0.5rem;
}

/* Hide default disclosure triangle */
.instructions summary::-webkit-details-marker {
  display: none;
}
.instructions summary::marker {
  content: "";
}

/* Custom arrow for summary */
.instructions summary::after {
  content: "▶";
  display: inline-block;
  margin-right: 0.5rem;
  transform: rotate(0deg);
  transition: transform 0.25s ease;
  color: var(--primary-color);
}

/* Rotate arrow when open */
.instructions details[open] summary::before {
  transform: rotate(90deg);
}

.instructions ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.instructions li {
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.upes-logo {
  height: 100px; /* Adjust size as needed */
  filter: drop-shadow(0 0 4px rgba(0, 87, 255, 0.7));
  box-shadow: 0 0 8px rgba(0, 87, 255, 0.6);
  border-radius: 8px; /* Optional rounded corners */
  transition: filter 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
}

.upes-logo:hover {
  filter: drop-shadow(0 0 6px rgba(0, 87, 255, 0.9));
  box-shadow: 0 0 12px rgba(0, 87, 255, 0.9);
}
