/* Kayıp Parça Game Styles */
.kayip-body {
    background: #000;
    min-height: 100vh;
    padding-bottom: 0px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Grid Layout */
.kayip-grid {
    display: grid;
    grid-template-columns: 280px 1fr 295px;
    gap: 20px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px 40px 15px;
}

@media (max-width: 1380px) and (min-width: 1100px) {
    .kayip-grid {
        grid-template-columns: 240px 1fr 250px;
        gap: 12px;
    }

    .kayip-card-container {
        width: 175px;
        height: 233px;
    }

    .kayip-cards-wrapper {
        gap: 10px;
    }

    .kayip-vs-divider {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1100px) {
    .kayip-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Panels */
.kayip-sidebar-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--ka-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.kayip-sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Back Button */
.btn-back-to-games {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8e8e93;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.btn-back-to-games:hover {
    color: #fff;
}

/* Main Content Column */
.kayip-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../images/sana-ozel-bg2.webp') no-repeat center center;
    background-size: cover;
    border: 1px solid var(--ka-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.kayip-center-header {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.kayip-center-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
}

.kayip-center-header h2 span {
    color: #e10600;
}

.kayip-center-header p {
    color: #a0a0a0;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Wrapper */
.kayip-cards-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0px;
    width: 100%;
    max-width: 800px;
}

.kayip-card-container {
    position: relative;
    width: 200px;
    height: 267px;
    background: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border: none !important;
}

.kayip-card-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.kayip-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 15%);
    pointer-events: none;
    z-index: 2;
}

.kayip-card-img-wrap img {
    width: 100%;
    height: 85%;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: bottom center;
    opacity: 0.85;
    transition: opacity 0.3s;
}

#f2-photo {
    transform: translateX(-50%) scaleX(-1);
}

.kayip-card-container.target-silhouette .kayip-card-img-wrap img {
    object-fit: contain;
    padding: 10px;
    filter: brightness(0);
    opacity: 0.18;
}

.kayip-card-container.target-silhouette .kayip-card-info-box {
    display: none;
}

.kayip-card-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.kayip-card-info-box {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 70%, transparent);
    text-align: center;
}

.kayip-card-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kayip-card-record {
    font-size: 0.72rem;
    color: #a0a0a0;
    font-weight: 600;
}

/* VS Badge */
.kayip-vs-divider {
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(225, 6, 0, 0.15);
    border: 1px solid rgba(225, 6, 0, 0.4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.3);
    z-index: 4;
}

/* Search Box & Autocomplete */
.kayip-search-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-bottom: 15px;
}

.kayip-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 16px;
    transition: all 0.3s;
}

.kayip-search-box:focus-within {
    border-color: rgba(225, 6, 0, 0.4);
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.15);
}

.kayip-search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 0;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
}

.kayip-search-box i {
    color: #8e8e93;
    margin-left: 10px;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.autocomplete-item:hover {
    background: rgba(225, 6, 0, 0.08);
}

.autocomplete-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}

.autocomplete-item-info {
    display: flex;
    flex-direction: column;
}

.autocomplete-item-name {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.autocomplete-item-sub {
    font-size: 0.7rem;
    color: #8e8e93;
}

/* Action Button */
.btn-submit-answer {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, #1c1c22 0%, #0d0d11 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-submit-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: 0.5s;
}

.btn-submit-answer:hover {
    background: linear-gradient(180deg, #24242b 0%, #121217 100%);
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.btn-submit-answer:hover::before {
    left: 100%;
}

.btn-submit-answer:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Clue Text Block */
.clues-box {
    width: 100%;
    max-width: 480px;
    margin-top: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #8e8e93;
    text-align: center;
}

/* Left Guide Block */
.guide-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.guide-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid rgba(225, 6, 0, 0.3);
    color: #e10600;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.guide-text {
    font-size: 0.8rem;
    color: #a0a0a0;
    line-height: 1.4;
}

/* Hint Box (Bulbs) */
.hint-status-box {
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.hint-bulbs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.hint-bulb {
    font-size: 1.5rem;
    color: #222;
    transition: all 0.3s;
}

.hint-bulb.active {
    color: #eab308;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.btn-get-hint {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s;
}

.btn-get-hint:hover {
    background: rgba(255, 255, 255, 0.07);
}

.btn-get-hint .hint-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e10600;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Right Stats Items */
.stat-row-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.stat-row-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
}

.stat-info-wrap {
    display: flex;
    flex-direction: column;
}

.stat-label-text {
    font-size: 0.72rem;
    color: #8e8e93;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-value-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
}

/* History Solves */
.solve-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.solve-history-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.solve-history-icon {
    color: var(--neon-green);
    font-size: 0.85rem;
}

.solve-history-name {
    font-weight: 700;
    color: #fff;
}

.solve-history-time {
    font-family: monospace;
    color: #8e8e93;
    font-size: 0.75rem;
}

/* Bottom Streak Card */
.streak-achievement-box {
    width: 100%;
    margin-top: 20px;
    background: rgba(225, 6, 0, 0.02);
    border: 1px solid rgba(225, 6, 0, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.streak-ach-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.streak-ach-icon {
    font-size: 1.5rem;
    color: #eab308;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.streak-ach-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.streak-ach-desc {
    font-size: 0.72rem;
    color: #a0a0a0;
    margin-top: 3px;
}

.streak-ach-progress {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: #e10600;
}

/* Promo Card */
.promo-xp-card {
    background: radial-gradient(circle at top right, rgba(225, 6, 0, 0.1) 0%, rgba(10, 10, 10, 0.9) 70%);
    border: 1px solid var(--ka-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-badge-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.target-question-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: #e10600;
    text-shadow: 0 0 20px rgba(225, 6, 0, 0.6);
    z-index: 5;
    font-family: 'Oswald', sans-serif;
    pointer-events: none;
    display: block;
}