/* ============================================ */
/* O2 ARAMA MOTORU - SEARCH.CSS                 */
/* ============================================ */

/* O2 Hero Section */
.o2-search-page {
    min-height: 100vh;
    padding-top: 70px;
}

.o2-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/kingdom/LOApexia_kingdom/LOApexia.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: min-height 0.5s ease;
}

.o2-hero.collapsed {
    min-height: 280px;
}

.o2-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.o2-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
    max-width: 700px;
}

/* O2 Logo */
.o2-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

.o2-hero.collapsed .o2-logo-container {
    transform: scale(0.7);
    gap: 10px;
}

.o2-logo-img {
    width: 100px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(41, 171, 226, 0.5));
    animation: o2Float 3s ease-in-out infinite;
}

@keyframes o2Float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.o2-logo-text {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(41, 171, 226, 0.3);
}

/* Search Bar */
.o2-search-bar-wrapper {
    width: 100%;
    max-width: 620px;
}

.o2-search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 8px 20px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.o2-search-bar:focus-within {
    background: #fff;
    box-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(41, 171, 226, 0.3);
    transform: scale(1.02);
}

.o2-search-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    opacity: 0.5;
}

.o2-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: transparent;
    padding: 10px 0;
}

.o2-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.o2-mic-icon {
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.o2-mic-icon:hover {
    opacity: 1;
}

/* Quick Links */
.o2-quick-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.o2-hero.collapsed .o2-quick-links {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.o2-quick-link {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.o2-quick-link:hover {
    background: rgba(41, 171, 226, 0.3);
    border-color: rgba(41, 171, 226, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* Results Container */
.o2-results-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.o2-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

#o2-results-count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.o2-back-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.o2-back-btn:hover {
    border-color: #29ABE2;
    color: #29ABE2;
}

/* Result Cards */
.o2-result-card {
    background: var(--color-background-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
}

.o2-result-card:hover {
    border-color: #29ABE2;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(41, 171, 226, 0.15);
}

.o2-result-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.o2-badge-wiki { background: rgba(225, 192, 0, 0.2); color: #e1c000; }
.o2-badge-rol { background: rgba(220, 20, 60, 0.2); color: #DC143C; }
.o2-badge-krallık { background: rgba(74, 144, 217, 0.2); color: #4a90d9; }
.o2-badge-meslek { background: rgba(139, 195, 74, 0.2); color: #8bc34a; }
.o2-badge-sayfa { background: rgba(156, 39, 176, 0.2); color: #9C27B0; }
.o2-badge-market { background: rgba(255, 152, 0, 0.2); color: #FF9800; }
.o2-badge-maden { background: rgba(0, 230, 118, 0.2); color: #00E676; }

.o2-result-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #29ABE2;
    margin-bottom: 6px;
}

.o2-result-snippet {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.o2-result-snippet mark {
    background: rgba(41, 171, 226, 0.25);
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
}

.o2-result-link {
    font-size: 0.8rem;
    color: rgba(41, 171, 226, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.o2-result-link::before {
    content: "🔗";
    font-size: 0.75rem;
}

/* No Results */
.o2-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.o2-no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.o2-no-results h3 {
    color: var(--color-text-light);
    margin-bottom: 10px;
}

/* ============= WIKI EMBEDDED O2 ============= */
.o2-wiki-splash {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/kingdom/LOApexia_kingdom/LOApexia.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.o2-wiki-splash .o2-hero-overlay {
    border-radius: 15px;
}

.o2-wiki-splash .o2-hero-content {
    gap: 20px;
}

.o2-wiki-splash .o2-logo-img {
    width: 70px;
    height: 56px;
}

.o2-wiki-splash .o2-logo-text {
    font-size: 2.5rem;
    letter-spacing: 5px;
}

.o2-wiki-splash .o2-search-bar-wrapper {
    max-width: 500px;
}

.o2-wiki-results {
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .o2-logo-text {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .o2-logo-img {
        width: 60px;
        height: 48px;
    }

    .o2-search-bar {
        padding: 6px 15px;
    }

    .o2-search-input {
        font-size: 0.9rem;
    }

    .o2-quick-links {
        gap: 8px;
    }

    .o2-quick-link {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .o2-result-card {
        padding: 15px 18px;
    }

    .o2-wiki-splash {
        min-height: 300px;
    }

    .o2-wiki-splash .o2-logo-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .o2-logo-container {
        flex-direction: column;
        gap: 5px;
    }

    .o2-logo-text {
        font-size: 1.6rem;
    }
}
