/* Genel Stiller */
.ati-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ati-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.ati-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ati-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ati-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Modern Galeri Düzeni */
.ati-gallery-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ati-ads-column {
    flex: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ati-ads-column.compact {
    flex: 0.6;
}

.ati-detail-sidebar {
    flex: 0.4;
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.ati-detail-sidebar.active {
    opacity: 1;
    transform: translateX(0);
}

.ati-detail-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ati-detail-sidebar-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Filtreler */
.ati-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.ati-filter-input,
.ati-filter-select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.ati-filter-input:focus,
.ati-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ati-filter-input {
    min-width: 200px;
}

/* Butonlar */
.ati-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.ati-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ati-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ati-btn-secondary {
    background: #6c757d;
    color: white;
}

.ati-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.ati-btn-close {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ati-btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.ati-btn-large {
    padding: 12px 30px;
    font-size: 16px;
}

/* İlan Grid */
.ati-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ati-ad-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.ati-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ati-ad-card.active {
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.ati-ad-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ati-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ati-ad-card:hover .ati-ad-image img {
    transform: scale(1.05);
}

.ati-ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ati-ad-content {
    padding: 20px;
}

.ati-ad-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ati-ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.ati-ad-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ati-ad-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e74c3c;
    margin: 10px 0;
}

.ati-ad-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #f8f9fa;
    padding-top: 12px;
}

.ati-ad-callsign {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

/* Detay İçeriği */
.ati-detail-images {
    margin-bottom: 0;
}

.ati-detail-main-image {
    margin-bottom: 0;
}

.ati-detail-main-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ati-detail-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px;
    overflow-x: auto;
    background: #f8f9fa;
}

.ati-detail-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ati-detail-thumbnails img:hover,
.ati-detail-thumbnails img.active {
    border-color: #667eea;
    transform: scale(1.05);
}

.ati-detail-info {
    padding: 20px;
}

.ati-detail-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.ati-detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #e74c3c;
    margin: 15px 0;
}

.ati-detail-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.ati-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ati-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ati-meta-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ati-meta-value {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

.ati-detail-description {
    margin: 25px 0;
    padding: 0 20px;
}

.ati-detail-description h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ati-detail-description p {
    line-height: 1.6;
    color: #495057;
}

.ati-detail-seller {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    margin: 0 20px 20px;
    border-radius: 8px;
}

.ati-detail-seller h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ati-seller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.ati-seller-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ati-seller-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.ati-seller-value {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Form Stilleri */
.ati-form-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.ati-form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.ati-form-group {
    margin-bottom: 20px;
}

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

.ati-form-row .ati-form-group {
    flex: 1;
}

.ati-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.ati-form-input,
.ati-form-select,
.ati-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ati-form-input:focus,
.ati-form-select:focus,
.ati-form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.ati-price-input {
    width: 120px !important;
}

.ati-help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    margin-bottom: 0;
}

.ati-form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Dosya Yükleme */
.ati-file-upload {
    position: relative;
}

.ati-file-input {
    position: absolute;
    left: -9999px;
}

.ati-file-label {
    display: block;
    padding: 40px 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.ati-file-label:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.ati-file-label .dashicons {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.ati-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ati-preview-placeholder {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
}

.ati-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
}

.ati-preview-item.featured {
    border-color: #3498db;
}

.ati-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ati-preview-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.ati-no-ads {
    text-align: center;
    padding: 60px 40px;
    color: #6c757d;
    font-style: italic;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ati-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1rem;
}

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

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

.ati-ad-card {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .ati-filters {
        grid-template-columns: 1fr 1fr;
    }
    
    .ati-ads-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ati-gallery-layout {
        flex-direction: column;
    }
    
    .ati-ads-column.compact {
        flex: 1;
    }
    
    .ati-detail-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .ati-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .ati-ads-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ati-detail-sidebar-header h3 {
        font-size: 1.2rem;
    }
    
    .ati-form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ati-container {
        padding: 10px;
    }
    
    .ati-detail-info {
        padding: 15px;
    }
    
    .ati-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .ati-seller-grid {
        grid-template-columns: 1fr;
    }
}