/* Reklam Yönetim Sistemi - Tailwind CSS Custom Styles */

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Custom utilities */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.animate-pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* File upload area */
.file-upload-area {
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.file-upload-area.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: scale(1.02);
}

/* Custom button styles */
.btn-primary {
    @apply bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2;
}

.btn-secondary {
    @apply bg-gray-500 hover:bg-gray-600 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2;
}

.btn-success {
    @apply bg-green-500 hover:bg-green-600 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2;
}

.btn-danger {
    @apply bg-red-500 hover:bg-red-600 text-white font-medium py-2 px-4 rounded-lg transition-all duration-200 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2;
}

/* Card styles */
.card {
    @apply bg-white rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1;
}

.card-hover {
    @apply transform transition-all duration-300 hover:scale-105 hover:shadow-2xl;
}

/* Form styles */
.form-input {
    @apply w-full border border-gray-300 rounded-lg px-4 py-2 focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200;
}

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

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Status badges */
.status-pending {
    @apply bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-sm font-medium;
}

.status-active {
    @apply bg-green-100 text-green-800 px-3 py-1 rounded-lg text-sm font-medium;
}

.status-expired {
    @apply bg-red-100 text-red-800 px-3 py-1 rounded-full text-sm font-medium;
}

.status-cancelled {
    @apply bg-gray-100 text-gray-800 px-3 py-1 rounded-full text-sm font-medium;
}

/* Loading states */
.loading-skeleton {
    @apply animate-pulse bg-gray-200 rounded;
}

.loading-spinner {
    @apply animate-spin rounded-full border-2 border-gray-300 border-t-blue-500;
}

/* Toast notifications */
.toast-success {
    @apply bg-green-50 border-l-4 border-green-500 text-green-800;
}

.toast-error {
    @apply bg-red-50 border-l-4 border-red-500 text-red-800;
}

.toast-info {
    @apply bg-blue-50 border-l-4 border-blue-500 text-blue-800;
}

.toast-warning {
    @apply bg-yellow-50 border-l-4 border-yellow-500 text-yellow-800;
}

/* Responsive grid */
.grid-responsive {
    @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6;
}

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

.gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        @apply bg-gray-900 text-white;
    }
    
    .dark-mode .card {
        @apply bg-gray-800 border-gray-700;
    }
    
    .dark-mode .form-input {
        @apply bg-gray-700 border-gray-600 text-white;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
}

/* Landing Page Stilleri */
.landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hero-section {
    padding: 120px 0;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .ui.button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-buttons .ui.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #333;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* How it Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Modern Card Stilleri */
.modern-card {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: none !important;
    padding: 2rem !important;
    background: white !important;
}

.modern-card .ui.header {
    color: #333 !important;
    font-weight: 600 !important;
}

.modern-card .ui.button {
    border-radius: 50px !important;
    padding: 1rem 2rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.modern-card .ui.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.modern-card .ui.input input {
    border-radius: 10px !important;
    border: 2px solid #e1e5e9 !important;
    padding: 1rem !important;
    transition: all 0.3s ease !important;
}

.modern-card .ui.input input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.modern-card .ui.dropdown {
    border-radius: 10px !important;
}

.modern-card .ui.dropdown .menu {
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.ui.container {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Reklam Alanları */
.ad-space {
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.ad-space:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.advertisement {
    width: 100%;
    text-align: center;
}

.advertisement img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.advertisement img:hover {
    transform: scale(1.02);
}

.no-ad {
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* Kartlar */
.ui.cards > .card {
    margin: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ui.cards > .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* İstatistikler */
.ui.statistics .statistic .value {
    color: #007bff;
    font-weight: bold;
}

.ui.statistics .statistic .label {
    color: #666;
    font-size: 0.9em;
}

/* Progress Bar */
.ui.progress .bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
}

/* Form Stilleri */
.ui.form .field > label {
    font-weight: 600;
    color: #333;
}

.ui.form .field .ui.pointing.label {
    font-size: 0.85em;
    color: #666;
}

/* Buton Stilleri */
.ui.button {
    transition: all 0.3s ease;
}

.ui.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Mesaj Stilleri */
.ui.message {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ui.positive.message {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.ui.negative.message {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.ui.info.message {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Header Stilleri */
.ui.segment:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ui.segment:first-child h2 {
    color: white;
    margin: 0;
}

.ui.segment:first-child .ui.menu {
    background: transparent;
    border: none;
}

.ui.segment:first-child .ui.menu .item {
    color: white;
}

.ui.segment:first-child .ui.menu .item:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Admin Panel Stilleri */
.admin-panel .ui.segment {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-panel .ui.statistics {
    margin: 20px 0;
}

.admin-panel .ui.cards > .card {
    margin: 0.5em;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ui.container {
        margin: 10px;
    }
    
    .ui.grid {
        margin: 0;
    }
    
    .ui.four.statistics {
        display: block;
    }
    
    .ui.four.statistics .statistic {
        display: block;
        margin: 10px 0;
    }
    
    .ad-space {
        min-height: 150px;
    }
    
    /* Landing page responsive */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .ui.button {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card, .step-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .ui.segment:first-child .ui.menu {
        flex-direction: column;
    }
    
    .ui.segment:first-child .ui.menu .item {
        text-align: center;
        margin: 5px 0;
    }
    
    .ad-space {
        min-height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ui.segment {
    animation: fadeIn 0.5s ease-out;
}

/* Özel Renkler */
.primary-color {
    color: #007bff;
}

.success-color {
    color: #28a745;
}

.warning-color {
    color: #ffc107;
}

.danger-color {
    color: #dc3545;
}

.info-color {
    color: #17a2b8;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tooltip Stilleri */
.ui.tooltip {
    position: relative;
    display: inline-block;
}

.ui.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.ui.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Tablo Stilleri */
.ui.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ui.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

/* Modal Stilleri */
.ui.modal {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ui.modal .header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

/* Dropdown Stilleri */
.ui.dropdown .menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Checkbox Stilleri */
.ui.checkbox input:checked ~ label:before {
    background-color: #007bff;
    border-color: #007bff;
}

/* Input Stilleri */
.ui.input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Label Stilleri */
.ui.label {
    border-radius: 4px;
    font-weight: 500;
}

/* List Stilleri */
.ui.relaxed.divided.list .item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.ui.relaxed.divided.list .item:last-child {
    border-bottom: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5em; }
.mt-2 { margin-top: 1em; }
.mt-3 { margin-top: 1.5em; }
.mt-4 { margin-top: 2em; }

.mb-1 { margin-bottom: 0.5em; }
.mb-2 { margin-bottom: 1em; }
.mb-3 { margin-bottom: 1.5em; }
.mb-4 { margin-bottom: 2em; }

.p-1 { padding: 0.5em; }
.p-2 { padding: 1em; }
.p-3 { padding: 1.5em; }
.p-4 { padding: 2em; }
