/**
 * Arama Modal Stilleri
 * 
 * @package Asetat_Canta
 * @version 1.0.0
 */

/* Arama Toggle Butonu */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.search-toggle:hover {
    background: #f5f5f5;
    color: #000;
}

/* Modal Overlay */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Modal Content */
.search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Close Button */
.search-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: #ff4757;
    color: #fff;
}

/* Modal Title */
.search-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.search-modal-header i {
    font-size: 32px;
    color: #ff4757;
    margin-bottom: 10px;
    display: block;
}

.search-modal-content h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

/* Search Form */
.search-input-wrapper {
    display: flex;
    background: #f8f9fa;
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-input-wrapper:focus-within {
    border-color: #ff4757;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.15);
}

.search-modal-content .search-field {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-modal-content .search-field::placeholder {
    color: #999;
}

.search-modal-content .search-submit {
    background: #ff4757;
    color: #fff;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.search-modal-content .search-submit:hover {
    background: #e84141;
}

/* Suggestions */
.search-suggestions {
    margin-top: 30px;
    text-align: center;
}

.search-suggestions p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-suggestions p i {
    color: #ff4757;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.suggestion-tag:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 60px;
    }
    
    .search-modal-content {
        padding: 25px 20px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .search-modal-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .search-modal-content .search-field {
        padding: 14px 18px;
        font-size: 16px; /* iOS zoom onleme */
    }
    
    .search-modal-content .search-submit {
        padding: 14px 20px;
    }
    
    .search-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .suggestion-tags {
        gap: 8px;
    }
    
    .suggestion-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding-top: 40px;
    }
    
    .search-modal-content {
        padding: 20px 15px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-modal-content .search-field {
        border-radius: 12px 12px 0 0;
        text-align: center;
    }
    
    .search-modal-content .search-submit {
        border-radius: 0 0 12px 12px;
        padding: 14px;
    }
}

/* Body scroll lock when modal is open */
body.search-modal-open {
    overflow: hidden;
}
