/* Base Variables & Reset */
:root {
  --bg-primary: #fbfbfe;
  --bg-secondary: #f3f0ff;
  --bg-card: #ffffff;
  --text-main: #1e1b2e;
  --text-muted: #6b7280;
  --purple-primary: #7c3aed;
  --purple-hover: #6d28d9;
  --purple-light: #f3e8ff;
  --purple-border: #e9d5ff;
  --purple-glow: rgba(124, 58, 237, 0.18);
  --blue-tick: #209cee;
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 8px 24px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 16px 32px rgba(124, 58, 237, 0.14);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 16px 100px;
  line-height: 1.6;
}

/* Background Management Layer */
.bg-layer-container {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer-image {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: filter 0.3s ease, opacity 0.3s ease, background-image 0.3s ease;
  will-change: filter, opacity;
}

.bg-layer-overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Hidden Utility */
.hidden {
  display: none !important;
}

/* Üst Navbar */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(251, 251, 254, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(233, 213, 255, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.top-navbar-container {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--purple-primary);
}

.lang-btn.active {
  color: var(--purple-primary);
  background: var(--purple-light);
}

.lang-divider {
  color: var(--purple-border);
  font-size: 12px;
  font-weight: 400;
}

.brand-logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: auto;
}

.brand-logo {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 6px;
  text-decoration: none;
  color: var(--text-main);
  text-transform: uppercase;
  background: linear-gradient(135deg, #a855f7, #7c3aed, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
  transition: var(--transition);
  display: inline-block;
  padding-left: 6px; /* offset for tracking */
}

.brand-logo:hover {
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
  transform: scale(1.03);
}

.top-navbar-right {
  width: 60px; /* Balance spacing for flexbox */
}

/* Main View Container */
.main-view-container {
  width: 100%;
  max-width: 680px;
}

.page-view {
  width: 100%;
}

/* App Container */
.app-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Maintenance Screen */
.maintenance-screen {
  position: fixed;
  inset: 0;
  background: rgba(251, 251, 254, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.maintenance-card {
  background: #ffffff;
  border: 1px solid var(--purple-border);
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 440px;
  width: 100%;
  animation: fadeIn 0.4s ease-out;
}

.maintenance-icon {
  width: 64px;
  height: 64px;
  background: var(--purple-light);
  color: var(--purple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.maintenance-card h2 {
  font-size: 24px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.maintenance-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.maintenance-footer .purple-badge {
  background: var(--purple-light);
  color: var(--purple-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}

/* Header & Profile Section */
.profile-header {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #a855f7, #7c3aed, #c084fc);
}

.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.avatar-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  filter: blur(8px);
  opacity: 0.4;
  z-index: 1;
}

.name-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-tick);
  width: 22px;
  height: 22px;
}

.verified-icon {
  width: 100%;
  height: 100%;
}

.profile-handle {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-primary);
  background: var(--purple-light);
  padding: 2px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-bio {
  color: var(--text-main);
  font-size: 15px;
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--purple-border);
  padding: 20px;
  border-radius: var(--radius-lg);
  line-height: 1.7;
  width: 100%;
  white-space: pre-line;
}

.profile-bio strong {
  color: var(--purple-primary);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(243, 232, 255, 0.6);
  padding: 6px;
  border-radius: var(--radius-lg);
  gap: 6px;
  border: 1px solid var(--purple-border);
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--purple-primary);
  background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--purple-primary);
  box-shadow: var(--shadow-sm);
}

/* Links Section */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1.5px solid var(--purple-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-primary);
  box-shadow: var(--shadow-md);
  background: #faf7ff;
}

.link-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--purple-light);
  color: var(--purple-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-card:hover .link-icon-box {
  background: var(--purple-primary);
  color: #ffffff;
}

.link-details {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.link-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.link-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--purple-light);
  color: var(--purple-primary);
  padding: 4px 10px;
  border-radius: 20px;
}

.link-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.link-card:hover .link-arrow {
  color: var(--purple-primary);
  transform: translateX(3px);
}

/* Dubbings Grid Section */
.dubbings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dubbing-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dubbing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-primary);
}

.dubbing-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.dubbing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 0.9;
}

.dubbing-card:hover .dubbing-thumb {
  transform: scale(1.05);
  opacity: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.dubbing-thumb-wrapper:hover .play-overlay {
  opacity: 1;
}

.play-btn {
  width: 52px;
  height: 52px;
  background: #ffffff;
  color: var(--purple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  padding-left: 3px;
}

.dubbing-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30, 27, 46, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dubbing-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dubbing-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.dubbing-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.dubbing-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.dubbing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dubbing-tag {
  font-size: 11px;
  background: var(--purple-light);
  color: var(--purple-primary);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Modal Player */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 29, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 28px;
  color: var(--text-main);
  cursor: pointer;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--purple-light);
  color: var(--purple-primary);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-info {
  padding: 20px;
}

.modal-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Standalone Report Page Card */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}

.report-header {
  text-align: center;
  margin-bottom: 28px;
}

.report-icon-box {
  width: 56px;
  height: 56px;
  background: var(--purple-light);
  color: var(--purple-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.report-header-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.report-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.report-header p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.required-star {
  color: #ef4444;
}

.form-row {
  display: flex;
  gap: 12px;
}

.country-code-group {
  width: 110px;
  flex-shrink: 0;
}

.phone-group {
  flex: 1;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--purple-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-primary);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px var(--purple-glow);
  background: #ffffff;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C7c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.warning-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #b45309;
  line-height: 1.5;
  margin-bottom: 20px;
}

.form-checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--purple-primary);
  margin-top: 2px;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--purple-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: var(--purple-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-message {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.form-message.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Alt iOS Tarzı Saydam Navbar */
.bottom-navbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 360px;
}

.bottom-navbar-container {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15), 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 20px;
  transition: var(--transition);
  flex: 1;
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  transition: var(--transition);
}

.bottom-nav-item:hover {
  color: var(--purple-primary);
}

.bottom-nav-item.active {
  color: var(--purple-primary);
  background: rgba(124, 58, 237, 0.1);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-1px);
}

/* Footer Section */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 12px 0;
}

#footer-copyright, #footer-copyright-report {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.footer-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-subtext a {
  color: var(--purple-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-subtext a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 520px) {
  body {
    padding-top: 72px;
    padding-bottom: 90px;
  }

  .profile-header, .report-card {
    padding: 24px 18px;
  }

  .dubbings-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    font-size: 20px;
    letter-spacing: 4px;
  }
}