/*
 * This is a manifest file that'll be compiled into application.css, which will include all the stylesheets accessible from this directory.
 *
 * It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the compiled file.
 *
 * Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details about supported directives.
 *= require_tree .
 *= require_self
 */

/* Spelling History Styles */
.spelling-history-container {
  background-color: #1a202c; /* Dark background */
  border-radius: 0.75rem; /* Rounded corners */
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  color: #e2e8f0; /* Light text color */
}

.spelling-history-container h2 {
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700; /* font-bold */
  color: #93c5fd; /* sky-300 */
  margin-bottom: 1.5rem;
  text-align: center;
}

.spelling-history-container ul {
  list-style: none;
  padding: 0;
}

.spelling-history-container li {
  background-color: #2d3748; /* Darker background for list items */
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #4a5568; /* Subtle border */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.spelling-history-container li:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.2), 0 6px 10px -3px rgba(0, 0, 0, 0.08); /* Enhanced shadow on hover */
}

.spelling-history-container li strong {
  color: #a78bfa; /* purple-300 */
  font-weight: 600;
}

.spelling-history-container li br {
  margin-bottom: 0.25rem;
}

.spelling-history-container li:last-child {
  margin-bottom: 0;
}

@import "landing.css";

.spelling-history-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.spelling-history-header {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
}

.spelling-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spelling-attempt-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  animation: fadeIn 0.5s ease-out;
}

.spelling-attempt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.spelling-attempt-card strong {
  font-weight: 600;
  color: #374151;
}

.spelling-attempt-card .word {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.spelling-attempt-card .response {
  font-family: monospace;
  background-color: #f3f4f6;
  padding: 0.75rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #4b5563;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.spelling-attempt-card .date {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@import "spelling_history.css";

/* Study List Styles */
.study-list-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9fafb;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.study-list-header {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.study-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 4;
  column-gap: 2rem;
}

.study-list li {
  margin-bottom: 0.75rem;
  break-inside: avoid-column;
}

.study-list li a {
  display: block;
  font-size: 1.125rem;
  color: #374151;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.study-list li a:hover {
  background-color: #e5e7eb;
  color: #1f2937;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .study-list {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .study-list {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .study-list {
    column-count: 1;
  }
}

/* Profile Quota Link */
.quota-link-container {
  margin: 1.5rem 1.5rem 0.5rem;
  display: flex;
}

.btn-manage-quota {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #f8fafc;
  color: #4f46e5;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn-manage-quota:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  color: #4338ca;
}

.mr-2 { margin-right: 0.5rem; }

/* ==== Premium Flash Messages ==== */
.flash-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    align-items: flex-end;
}

.flash-message {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    min-width: 300px;
    max-width: 450px;
    animation: flashSlideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, 
               flashFadeOutRight 0.5s ease 6s forwards;
    opacity: 0;
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    padding-right: 48px; /* space for close button */
}

.flash-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.flash-close:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

.flash-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.flash-text {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Notice Styling */
.flash-message.notice .flash-icon {
    color: #10b981;
}

.flash-message.notice .flash-progress {
    background-color: #10b981;
}

/* Alert Styling */
.flash-message.alert .flash-icon {
    color: #ef4444;
}

.flash-message.alert .flash-progress {
    background-color: #ef4444;
}

/* The Animated Progress Bar */
.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    animation: flashProgressShrink 6s linear forwards;
}

@keyframes flashProgressShrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes flashSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flashFadeOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
        visibility: hidden;
    }
}
