/* Frontend Dublaj Hesaplayıcı CSS */

/* Temel reset */
.dubbing-calculator-container * {
    box-sizing: border-box;
}

/* Ana container */
.dubbing-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Responsive tasarım iyileştirmeleri */
@media (max-width: 768px) {
    .dubbing-calculator-container {
        padding: 24px 12px !important;
    }
    
    .dubbing-calculator-card {
        padding: 20px !important;
    }
    
    .dubbing-calculator-title {
        font-size: 24px !important;
    }
    
    .dubbing-languages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .dubbing-calculator-header {
        flex-direction: column;
        text-align: center;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .dubbing-calculator-container {
        padding: 16px 8px !important;
    }
    
    .dubbing-calculator-card {
        padding: 16px !important;
    }
    
    .dubbing-calculator-title {
        font-size: 20px !important;
    }
    
    .dubbing-languages-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    
    .dubbing-form-input {
        font-size: 16px !important; /* iOS zoom önleme */
    }
}

/* Form animasyonları */
.dubbing-form-input {
    transition: all 0.3s ease;
}

.dubbing-form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Checkbox stilleri */
.dubbing-language-checkbox {
    transition: all 0.2s ease;
}

.dubbing-language-checkbox:checked {
    transform: scale(1.1);
}

.dubbing-language-item {
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
}

.dubbing-language-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Buton animasyonları */
.dubbing-submit-btn {
    position: relative;
    overflow: hidden;
}

.dubbing-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dubbing-submit-btn:hover::before {
    left: 100%;
}

/* Sonuç kartı animasyonları */
.dubbing-results-card {
    transition: all 0.3s ease;
}

.dubbing-result-item {
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 4px;
}

.dubbing-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Loading durumu */
.dubbing-calculator-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dubbing-calculator-loading .dubbing-submit-btn {
    background: #9ca3af !important;
    cursor: not-allowed;
}

/* Hata durumu */
.dubbing-form-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Başarı durumu */
.dubbing-form-input.success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Tooltip stili */
.dubbing-tooltip {
    position: relative;
    cursor: help;
}

.dubbing-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.dubbing-tooltip:hover::after {
    opacity: 1;
}

/* Pulse animasyonu */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.dubbing-pulse {
    animation: pulse 2s infinite;
}

/* Fade in animasyonu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dubbing-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Shake animasyonu (hata için) */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.dubbing-shake {
    animation: shake 0.5s ease-in-out;
}

/* Progress bar */
.dubbing-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 16px 0;
}

.dubbing-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Özel scrollbar */
.dubbing-calculator-container::-webkit-scrollbar {
    width: 8px;
}

.dubbing-calculator-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dubbing-calculator-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.dubbing-calculator-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Focus trap için */
.dubbing-focus-trap {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Print stilleri */
@media print {
    .dubbing-calculator-container {
        background: white !important;
        color: black !important;
        padding: 20px !important;
    }
    
    .dubbing-calculator-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .dubbing-submit-btn {
        display: none !important;
    }
    
    .dubbing-calculator-title,
    .dubbing-form-label,
    .dubbing-result-label,
    .dubbing-result-value {
        color: black !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .dubbing-calculator-card {
        border: 2px solid white !important;
    }
    
    .dubbing-form-input {
        border: 2px solid white !important;
    }
    
    .dubbing-submit-btn {
        border: 2px solid white !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dubbing-calculator-container *,
    .dubbing-calculator-container *::before,
    .dubbing-calculator-container *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode uyumluluğu */
@media (prefers-color-scheme: dark) {
    .dubbing-calculator-container {
        /* Zaten dark tema kullanıyoruz, ek değişiklik gerekmez */
    }
}

/* Özel utility sınıfları */
.dubbing-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dubbing-not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Özel grid sistemi */
.dubbing-grid {
    display: grid;
    gap: 16px;
}

.dubbing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dubbing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dubbing-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Flexbox utilities */
.dubbing-flex {
    display: flex;
}

.dubbing-flex-col {
    flex-direction: column;
}

.dubbing-flex-center {
    align-items: center;
    justify-content: center;
}

.dubbing-flex-between {
    justify-content: space-between;
}

.dubbing-flex-wrap {
    flex-wrap: wrap;
}

/* Spacing utilities */
.dubbing-space-y-4 > * + * {
    margin-top: 16px;
}

.dubbing-space-x-4 > * + * {
    margin-left: 16px;
}

/* Text utilities */
.dubbing-text-center {
    text-align: center;
}

.dubbing-text-left {
    text-align: left;
}

.dubbing-text-right {
    text-align: right;
}

/* Tailwind CSS Base Styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

/* Tailwind CSS Utilities */

/* Container */
.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Margin Auto */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Max Width */
.max-w-3xl {
  max-width: 48rem;
}

/* Min Height */
.min-h-screen {
  min-height: 100vh;
}

/* Background */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-900 {
  --tw-gradient-from: #1e3a8a var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 58 138 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-purple-900 {
  --tw-gradient-to: #581c87 var(--tw-gradient-to-position);
}

.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}

.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}

.bg-indigo-500 {
  background-color: #6366f1;
}

.bg-indigo-600 {
  background-color: #4f46e5;
}

/* Backdrop Filter */
.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

/* Padding */
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Border */
.border {
  border-width: 1px;
}

.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}

.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}

/* Border Radius */
.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded {
  border-radius: 0.25rem;
}

/* Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

/* Gap */
.gap-3 {
  gap: 0.75rem;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

/* Margin */
.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-white {
  color: rgb(255 255 255);
}

.text-white\/80 {
  color: rgb(255 255 255 / 0.8);
}

.text-white\/60 {
  color: rgb(255 255 255 / 0.6);
}

.text-indigo-500 {
  color: #6366f1;
}

/* Display */
.block {
  display: block;
}

/* Width */
.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

/* Height */
.h-6 {
  height: 1.5rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Focus */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
}

.focus\:ring-indigo-500:focus {
  --tw-ring-color: #6366f1;
}

/* Placeholder */
.placeholder-white\/60::placeholder {
  color: rgb(255 255 255 / 0.6);
}

/* Hover */
.hover\:bg-indigo-600:hover {
  background-color: #4f46e5;
}

/* Transition */
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Form Elements */
input[type="number"],
input[type="text"],
input[type="email"] {
  appearance: none;
}

input[type="checkbox"] {
  appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: #ffffff;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type="checkbox"]:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}

input[type="checkbox"]:checked::before {
  content: "✓";
  transform: scale(1);
  color: white;
  font-size: 0.8em;
  font-weight: bold;
}

/* Custom Styles */
.dubbing-calculator-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Design */
@media (max-width: 640px) {
  .py-12 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .px-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .p-6 {
    padding: 1rem;
  }
  
  .text-2xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dubbing-calculator-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus States */
input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6366f1;
}

button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6366f1;
}

/* Hover Effects */
button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Error State */
.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

/* Success State */
.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
} 