/**
 * Modern Pastebin - Özel CSS Kodları
 * assets/css/style.css
 */

/* Font Families */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

code, pre, .font-mono {
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-300 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400;
}

/* Selection */
::selection {
    @apply bg-blue-500 text-white;
}

::-moz-selection {
    @apply bg-blue-500 text-white;
}

/* Focus Styles */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

/* Code Highlighting Enhancements */
pre[class*="language-"] {
    @apply bg-gray-50 border border-gray-200 rounded-lg;
    font-size: 14px;
    line-height: 1.5;
    overflow: auto;
    padding: 1rem;
}

code[class*="language-"] {
    font-size: 14px;
    line-height: 1.5;
}

/* Line Numbers */
.line-numbers .line-numbers-rows {
    @apply border-r border-gray-300 pr-3 mr-3;
}

.line-numbers-rows > span:before {
    @apply text-gray-400;
}

/* Code Container Enhancements */
#code-container {
    position: relative;
    max-height: 70vh;
    overflow: auto;
}

#code-container.no-wrap code {
    white-space: pre;
}

#code-container.wrap code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Copy Button Overlay */
.code-container {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    @apply bg-gray-700 text-white px-2 py-1 rounded text-xs opacity-0 hover:opacity-100 transition-opacity duration-200;
}

.code-container:hover .copy-button {
    opacity: 1;
}

/* Toast Notifications */
.toast {
    @apply fixed top-4 right-4 z-50 max-w-sm;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    @apply bg-green-500 text-white;
}

.toast.error {
    @apply bg-red-500 text-white;
}

.toast.info {
    @apply bg-blue-500 text-white;
}

.toast.warning {
    @apply bg-yellow-500 text-black;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Enhancements */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    @apply text-white font-semibold py-2 px-4 rounded-lg transition-all duration-200 transform hover:scale-105 hover:shadow-lg;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Card Hover Effects */
.card-hover {
    @apply transition-all duration-200 hover:shadow-xl hover:-translate-y-1;
}

/* Form Enhancements */
.form-input {
    @apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent bg-white text-gray-900 transition-colors duration-200;
}

.form-input:focus {
    @apply shadow-lg;
}

/* Navigation Enhancements */
.nav-link {
    @apply relative text-gray-700 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200;
}

.nav-link.active {
    @apply text-blue-600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    @apply bg-blue-600;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-nav {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-nav.open {
        transform: translateY(0);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { 
        opacity: 0;
        transform: scale(0.3);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
    70% { 
        transform: scale(0.9);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        @apply text-black bg-white;
    }
    
    pre[class*="language-"] {
        @apply bg-white border border-gray-300;
    }
    
    .nav, .footer {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-gradient {
        background: #000000;
        border: 2px solid #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible (for keyboard navigation) */
.focus-visible:focus {
    @apply outline-none ring-2 ring-blue-500 ring-offset-2;
}

/* Custom Properties for Theme */
:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #6366f1;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
}