/* =========================================
   Font Generator - Glassmorphism Styles
========================================= */

.page-wrapper {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 6fr 1fr;
  gap: 2rem;
  padding: 60px 0 4rem 0;
  flex: 1;
}
.ad-space-left,
.ad-space-right {
  width: 100%;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #475569);
  font-size: 0.8rem;
}
.main-content {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.glass-panel {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 85, 255, 0.15));
}
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: #00a2ff;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 500px;
  height: 500px;
  background: #0033cc;
  bottom: -150px;
  right: -100px;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: #7dd3fc;
  top: 40%;
  left: 30%;
}

h1 {
  margin-bottom: 0.5rem;
  color: var(--text-dark, #1e293b);
  font-size: 2rem;
}
h2 {
  font-size: 1.4rem;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

/* Input Area */
.textarea-container {
  margin-bottom: 1.5rem;
}
.textarea-container textarea {
  width: 100%;
  height: 120px;
  padding: 1.25rem;
  font-size: 1.25rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--accent, #0055ff);
  border-radius: 12px;
  outline: none;
  resize: vertical;
  transition: box-shadow 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.1);
}
.textarea-container textarea:focus {
  box-shadow: 0 4px 20px rgba(0, 85, 255, 0.2);
}

/* Tabs Navigation */
.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 1rem;
}
.tab-btn {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
}
.tab-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 85, 255, 0.2);
}

/* Results Section */
.results-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.results-header h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.results-grid::-webkit-scrollbar {
  width: 6px;
}
.results-grid::-webkit-scrollbar-track {
  background: transparent;
}
.results-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 85, 255, 0.3);
  border-radius: 4px;
}

/* Font Card */
.font-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.font-card:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.font-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.font-card:hover .font-label {
  color: var(--accent);
}

.font-preview {
  font-size: 1.25rem;
  color: var(--text-dark);
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
  pointer-events: none;
}

.copy-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  color: var(--accent);
  font-size: 1.2rem;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform: scale(0.8);
}
.font-card:hover .copy-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s;
  z-index: 1000;
  pointer-events: none;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-block h4 {
  font-size: 1.15rem;
  color: var(--accent, #0055ff);
  border-bottom: 2px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.info-block p {
  color: var(--text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-wrapper {
    width: 95%;
    grid-template-columns: 1fr;
  }
  .ad-space-left,
  .ad-space-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
  .tabs-container {
    justify-content: center;
  }
}
