/**
 * Élő keresés stílusai
 */
.live-search-results {
    position: relative;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    animation: fadeInResults 0.3s ease-out;
}

@keyframes fadeInResults {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.darkmode .live-search-results {
    background: #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.live-search-loading {
    padding: 20px;
    text-align: center;
}

.live-search-loading .spinner-border {
    animation: spinner 1s linear infinite;
}

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

.live-search-items {
    padding: 10px 0;
}

.live-search-item-container {
    position: relative;
    border-bottom: 1px solid #eee;
    animation: fadeInItem 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInItem {
    to { opacity: 1; transform: translateY(0); }
}

/* Késleltetett animáció az elemekhez */
.live-search-item-container:nth-child(1) { animation-delay: 0.05s; }
.live-search-item-container:nth-child(2) { animation-delay: 0.1s; }
.live-search-item-container:nth-child(3) { animation-delay: 0.15s; }
.live-search-item-container:nth-child(4) { animation-delay: 0.2s; }
.live-search-item-container:nth-child(5) { animation-delay: 0.25s; }

.darkmode .live-search-item-container {
    border-bottom: 1px solid #444;
}

.live-search-item-container:last-child {
    border-bottom: none;
}

.live-search-item {
    display: flex;
    padding: 10px 15px;
    transition: all 0.25s ease;
    text-decoration: none !important;
    color: inherit;
}

.live-search-item:hover {
    background-color: #f9f9f9;
    text-decoration: none;
    transform: translateX(3px);
}

.darkmode .live-search-item:hover {
    background-color: #3a3a3a;
}

.live-search-thumbnail {
    width: 60px;
    height: 45px;
    margin-right: 15px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.live-search-item:hover .live-search-thumbnail {
    transform: scale(1.05);
}

.live-search-content {
    flex-grow: 1;
}

.live-search-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.3;
    color: #333;
    transition: color 0.2s ease;
}

.darkmode .live-search-title {
    color: #fff;
}

.live-search-item:hover .live-search-title {
    color: #268d83;
}

.darkmode .live-search-item:hover .live-search-title {
    color: #58ceb6;
}

.live-search-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.darkmode .live-search-excerpt {
    color: #bbb;
}

.live-search-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.live-search-footer {
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #eee;
    animation: fadeInFooter 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInFooter {
    to { opacity: 1; }
}

.darkmode .live-search-footer {
    border-top: 1px solid #444;
}

.live-search-all-results {
    color: #268d83;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
}

.live-search-all-results:hover {
    color: #1f977c;
    text-decoration: none;
    background-color: rgba(38, 141, 131, 0.1);
    transform: translateY(-1px);
}

.darkmode .live-search-all-results:hover {
    background-color: rgba(88, 206, 182, 0.1);
}

.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    animation: fadeIn 0.3s ease-out;
}

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

.darkmode .live-search-no-results {
    color: #bbb;
}

/* URL másolása gomb */
.live-search-copy-url {
    position: absolute;
    right: 15px;
    top: 15px;
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    color: #268d83;
    z-index: 5;
    transform: scale(0.9);
}

.live-search-copy-url:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1);
}

.darkmode .live-search-copy-url {
    color: #58ceb6;
}

.darkmode .live-search-copy-url:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.live-search-copy-url.copied {
    color: #28a745;
    opacity: 1;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.darkmode .live-search-copy-url.copied {
    color: #5cb85c;
}

/* Reszponzív beállítások */
@media (max-width: 767px) {
    .live-search-results {
        max-height: 350px;
    }
    
    .live-search-thumbnail {
        width: 50px;
        height: 40px;
    }
    
    .live-search-title {
        font-size: 14px;
    }
} 