/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.97) 0%, rgba(118, 75, 162, 0.97) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex !important;
}

.loading-content {
    text-align: center;
    color: white;
    position: relative;
}

.coin-flip {
    perspective: 1000px;
    margin-bottom: 30px;
}

.coin {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: coinFlip 2s ease-in-out infinite;
    margin: 0 auto;
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.coin-back {
    transform: rotateY(180deg);
}

@keyframes coinFlip {
    0%, 100% { transform: rotateY(0deg) rotateX(10deg); }
    50% { transform: rotateY(180deg) rotateX(-10deg); }
}

.loading-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.loading-text p {
    font-size: 18px;
    opacity: 0.9;
}

.search-query-display {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 5px;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffec8b, #ffd700);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressMove 2s ease-in-out infinite, progressShine 1s linear infinite;
    width: 0%;
}

@keyframes progressMove {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-tips {
    min-height: 30px;
    margin-top: 20px;
}

.loading-tips .tip {
    display: none;
    font-size: 16px;
    opacity: 0.9;
    animation: fadeInUp 0.5s ease;
}

.loading-tips .tip.active {
    display: block;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.9; transform: translateY(0); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.particles span {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255,215,0,0.6);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particles span:nth-child(2) { left: 80%; top: 30%; animation-delay: 0.5s; width: 15px; height: 15px; }
.particles span:nth-child(3) { left: 20%; top: 70%; animation-delay: 1s; width: 25px; height: 25px; }
.particles span:nth-child(4) { left: 70%; top: 80%; animation-delay: 1.5s; }
.particles span:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; width: 12px; height: 12px; }
.particles span:nth-child(6) { left: 90%; top: 60%; animation-delay: 2.5s; width: 18px; height: 18px; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}

/* ========== Müzayede Arama Sayfası Stilleri ========== */
.muzayede-search-header {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    padding: 40px 0;
    color: white;
    margin-bottom: 30px;
}

.muzayede-search-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.muzayede-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.muzayede-search-form .input-group {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}

.muzayede-search-form input {
    border: none;
    padding: 15px 25px;
    font-size: 16px;
}

.muzayede-search-form input:focus {
    box-shadow: none;
    outline: none;
}

.muzayede-search-form button {
    border: none;
    background: #dc3545;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
}

.muzayede-search-form button:hover {
    background: #b02a37;
}

.muzayede-result-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.muzayede-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.muzayede-result-card .card-img-top {
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 15px;
}

.muzayede-result-card .card-body {
    padding: 15px;
}

.muzayede-result-card .card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    height: 55px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.muzayede-result-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #dc3545;
}

.muzayede-result-card .auction {
    font-size: 11px;
    color: #666;
}

.muzayede-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
}

.muzayede-stats {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.muzayede-no-results {
    text-align: center;
    padding: 80px 20px;
}

.muzayede-no-results svg {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.popular-searches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.popular-searches a {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.popular-searches a:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .muzayede-search-header h1 {
        font-size: 1.6rem;
    }
    
    .muzayede-result-card .card-img-top {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .muzayede-search-header {
        padding: 30px 15px;
    }
    
    .muzayede-search-header h1 {
        font-size: 1.4rem;
    }
    
    .muzayede-search-header p {
        font-size: 14px;
    }
    
    .muzayede-search-form input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .muzayede-search-form button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .muzayede-result-card .card-img-top {
        height: 140px;
        padding: 10px;
    }
    
    .muzayede-result-card .card-body {
        padding: 12px;
    }
    
    .muzayede-result-card .card-title {
        font-size: 12px;
        height: 45px;
    }
    
    .muzayede-result-card .price {
        font-size: 14px;
    }
    
    .muzayede-result-card .auction {
        font-size: 10px;
    }
    
    .popular-searches a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .loading-text h3 {
        font-size: 22px;
    }
    
    .loading-text p {
        font-size: 15px;
    }
    
    .loading-progress {
        width: 250px;
    }
    
    .coin {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .muzayede-search-header h1 {
        font-size: 1.2rem;
    }
    
    .muzayede-search-form .input-group {
        border-radius: 30px;
    }
    
    .muzayede-search-form input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .muzayede-search-form button {
        padding: 10px 15px;
    }
    
    .muzayede-result-card .card-img-top {
        height: 120px;
    }
    
    .muzayede-result-card .card-title {
        font-size: 11px;
        height: 40px;
        -webkit-line-clamp: 2;
    }
    
    .muzayede-result-card .price {
        font-size: 13px;
    }
    
    .muzayede-badge {
        font-size: 9px;
        padding: 2px 8px;
    }
    
    .popular-searches {
        gap: 6px;
    }
    
    .popular-searches a {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .muzayede-no-results {
        padding: 50px 15px;
    }
    
    .muzayede-no-results svg {
        width: 80px;
        height: 80px;
    }
    
    .muzayede-no-results h3 {
        font-size: 1.2rem;
    }
    
    .coin {
        width: 70px;
        height: 70px;
    }
    
    .loading-text h3 {
        font-size: 18px;
    }
    
    .loading-text p {
        font-size: 13px;
    }
    
    .loading-progress {
        width: 200px;
    }
    
    .loading-tips .tip {
        font-size: 13px;
    }
}
