
/* ==========================================================================
   Study Section (학습하기)
   ========================================================================== */
.study-section {
  margin-top: 20px;
  width: 100%;
}

.study-guide {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-align: center;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.study-card {
  background: rgba(22, 34, 56, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  backdrop-filter: blur(5px);
}

.study-card:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--primary-cyan);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.study-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.study-card-title {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.study-card-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}


/* Study Modal */
.study-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 17, 31, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000; /* High z-index */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
  visibility: visible;
}

.study-modal.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.study-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--primary-cyan);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.3);
  animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.study-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.study-title {
  color: var(--primary-cyan);
  font-size: 1.5rem;
  font-weight: 700;
}

.close-study-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close-study-btn:hover {
  color: var(--error);
}

.study-body {
  padding: 25px;
  overflow-y: auto;
  font-size: 1.0rem;
  line-height: 1.6;
  color: var(--text-main);
  white-space: normal; /* HTML formatting support */
}

/* Study Content Typography */
.study-body h3 {
    color: var(--primary-cyan);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-cyan);
    padding-left: 10px;
}

.study-body h3:first-child {
    margin-top: 0;
}

.study-body p {
    margin-bottom: 15px;
    color: var(--text-dim);
}

.study-body strong {
    color: var(--text-main);
    font-weight: 700;
}

.study-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.study-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    color: var(--text-dim);
}

.study-list li::before {
    content: "•";
    color: var(--primary-cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card h4 {
    color: var(--secondary-purple);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.tool-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}
