/* 1) RESET & GENEL */
    @font-face {
        font-family: 'Planet Gamers';
        src: url('../font/planet-gamers/Planet Gamers DEMO.otf') format('otf');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body {
        font-family: 'Montserrat', sans-serif;
        /* önce resmi, sonra renk atıyoruz */
        background-image: url('../img/home.png');
        background-color: rgba(0,0,0,0.87);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        /* resimle rengi overlay olarak karıştır */
        background-blend-mode: overlay;
        color: #fff;
    }
    .hidden { display:none !important; }

    /* 2) NAV & HERO (öncekilerle aynı) */
    .top-nav { max-width:1200px; margin:auto; padding:20px; display:flex; justify-content:space-between; align-items:center; }
    .top-nav .menu { display:flex; gap:30px; list-style-type: none; }
    .top-nav .menu a { color:#fff; font-size:16px; text-decoration: none }
    .nav-icons i { margin-left:20px; cursor:pointer; }
    .hero { text-align:center; padding:10px; }
    .hero h1 { font-family:'Planet Gamers'; font-size:60px; line-height:1; color:#d4af37; }
    .hero h1 span { display:block; margin-top:-10px; }
    .hero p { margin-top:20px; font-size:18px; color:#aaa; line-height:1.4; }
    .highlight { color:#d4af37; font-weight:600; }

    /* 3) ARAMA & DURUM */
    .search-container {
        max-width:800px; margin:20px auto; display:flex; align-items:center;
        border:1px solid #222; border-radius:50px; padding:8px 20px; background:rgba(255,255,255,0.05);
    }
    .search-container input {
        flex:1; background:transparent; border:none; outline:none;
        color:#fff; font-size:16px; padding:10px 0;
    }
    .search-container input::placeholder { color:#555; }
    .attempt-info { display:flex; align-items:center; gap:8px; font-size:14px; }
    .attempt-info .step { color:#fff; }
    .attempt-info .step strong { font-weight:600; }
    .attempt-info .wrong,
    .attempt-info .correct {
        width:30px; height:30px; display:flex; align-items:center; justify-content:center;
        border-radius:6px; color:#fff; font-weight:600;
    }
    .attempt-info .wrong { background:#e74c3c; }
    .attempt-info .correct { background:#27ae60; }
    .attempt-info .text { color:#fff; }
    .btn-search { background:none; border:none; cursor:pointer; font-size:18px; color:#fff; }

    /* 4) SEARCH RESULTS */
    .search-results {
        max-width:800px; margin:20px auto; padding:20px;
        border:1px solid #d4af37; border-radius:10px;
    }
    .search-item {
        display:flex; align-items:center; padding:12px 0;
        border-bottom:1px solid #222;
    }
    .search-item:last-child { border-bottom:none; }
    .search-item .img-wrapper {
        width:40px; height:40px; border-radius:6px; overflow:hidden; margin-right:12px;
    }
    .search-item .img-wrapper img {
        width:100%; height:100%; object-fit:cover;
    }
    .search-text { display:flex; flex-direction:column; }
    .search-name {
        font-size:16px; font-weight:600; margin-bottom:6px;
    }
    .search-attrs {
        display:flex; flex-wrap:wrap; gap:6px;
        font-size:14px; color:#aaa;
    }
    .no-results {
        padding:12px; text-align:center; color:#aaa; font-size:16px;
    }

    /* 5) TAHMİN TABLOSU */
    .champion-table { max-width:1000px; margin:auto; padding:15px; border-radius: 10px; border: 1px solid #d4af37;}
    .row {
        display:grid; grid-template-columns:200px repeat(7,1fr);
        gap:10px; align-items:center;
        background:#151823; border:1px solid #222;
        border-radius:10px; padding:12px 20px; margin-bottom:12px;
    }
    .cell { display:flex; flex-direction:column; align-items:center; }
    .cell .label { font-size:12px; color:#777; margin-bottom:6px; }
    .cell .status {
        display:flex; align-items:center; font-size:14px; font-weight:500;
        padding:4px 10px; border-radius:6px; color:#fff;
    }
    .status.correct { background:#27ae60; }
    .status.wrong   { background:#ff3c6d; }
    .status.high    { background:#3498db; }
    .status.low     { background:#8e44ad; }
    /* champion hücresi */
    .cell.champion { flex-direction:row; align-items:center; }
    .img-wrapper {
        width:40px; height:40px; border-radius:6px; overflow:hidden; margin-right:10px;
    }
    .img-wrapper img { width:100%; height:100%; object-fit:cover; }
    .cell.champion .value { font-size:16px; font-weight:600; color:#fff; }

    /* 6) ALT LEGEND */
    .legend {
        max-width:900px; margin:40px auto; display:flex; justify-content:center; gap:40px;
    }
    .legend div { display:flex; align-items:center; gap:6px; font-size:14px; color:#fff; }
    .legend .icon {
        width:12px; height:12px; border-radius:50%;
    }
    .legend .icon.correct { background:#27ae60; }
    .legend .icon.wrong   { background:#ff3c6d; }
    .legend .icon.high    { background:#3498db; }
    .legend .icon.low     { background:#8e44ad; }

    /* 5) OYUN BİTTİ EKRANI */
    #result-screen {
        max-width:900px; margin:40px auto; text-align:center;
    }
    .result-banner {
        font-family:'Cinzel', serif;
        font-size:48px; color:#d4af37;
        margin-bottom:20px;
        height: 200px;
    }
    #btn-restart {
        background:transparent; border:1px solid #d4af37;
        border-radius:30px; padding:10px 25px;
        font-size:16px; color:#d4af37; cursor:pointer;
    }
    #btn-restart i {
        margin-right: 5px;
    }
    .champion-detail {
        background:#151823; overflow:hidden;
    }
    .detail-header {
        padding:30px; text-align:left;
    }
    .subheading {
        font-size:14px; color:#d4af37; text-transform:uppercase;
    }
    .champion-name {
        font-size:32px; margin:10px 0; color:#fff;
    }
    .description {
        font-size:15px; line-height:1.6; color:#ccc;
    }
    .detail-image img {
        width:100%; display:block;
        object-fit:cover; max-height:400px;
    }
    .detail-stats {
        display:flex; flex-wrap:wrap;
        border-top:1px solid #222; padding:20px;
        gap:10px;
        list-style-type: none;
    }

    .detail-stats li {
        flex:1 1 120px;
        background:#0b0e17; border:1px solid #333;
        border-radius:6px; padding:8px;
        font-size:14px; color:#ddd;
    }
    .detail-stats .label {
        display:block; font-size:12px; color:#777; margin-bottom:4px;
    }

    /* 7) RESPONSIVE */
    @media (max-width:768px) {
        .top-nav { flex-direction:column; gap:10px; }
        .hero h1 { font-size:40px; }
        .hero p  { font-size:16px; }
        .search-container {
            flex-direction:column; padding:12px; gap:10px;
        }
        .attempt-info { flex-wrap:wrap; justify-content:center; }
        .search-results,
        .champion-table { overflow-x:auto; padding:0 10px; }
        .row { grid-template-columns:100px repeat(3,1fr); }
        .legend { padding:0 10px; }
    }

.game-options {
        max-width: 900px;
        margin: 40px auto;
        text-align: center;
    }

    .game-options h2 {
        font-size: 24px;
        color: #d4af37;
        margin-bottom: 20px;
    }

    .difficulty-options {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 30px;
    }

    .difficulty-card {
        width: 200px;
        background: rgba(21, 24, 35, 0.8);
        border: 1px solid #222;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

    .difficulty-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-color: #d4af37;
    }

    .diff-icon {
        font-size: 32px;
        color: #d4af37;
        margin-bottom: 15px;
    }

    .difficulty-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .difficulty-card p {
        font-size: 14px;
        color: #aaa;
        margin-bottom: 10px;
    }

    .max-points {
        font-size: 13px;
        color: #d4af37;
        font-weight: 600;
        background: rgba(0, 0, 0, 0.2);
        padding: 5px 0;
        border-radius: 0 0 10px 10px;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .leaderboard-link {
        margin-top: 30px;
    }

    .leaderboard-button {
        display: inline-block;
        background: rgba(21, 24, 35, 0.8);
        border: 1px solid #d4af37;
        color: #d4af37;
        padding: 10px 20px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .leaderboard-button:hover {
        background: rgba(212, 175, 55, 0.2);
        transform: translateY(-2px);
    }

    .leaderboard-button i {
        margin-right: 8px;
    }

    /* Base styles matching champion guessing game */
    .ability-preview-container {
        width: 128px;
        height: 128px;
        margin: 20px auto;
        position: relative;
    }

    #ability-canvas {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        border: 3px solid #d4af37;
        background-color: #151823;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    /* Clues Section */
    .clues-section {
        max-width: 800px;
        margin: 0 auto 20px;
        padding: 15px;
        background: rgba(21, 24, 35, 0.7);
        border-radius: 10px;
    }

    .clues-section h3 {
        color: #d4af37;
        margin-bottom: 10px;
        font-size: 18px;
    }

    #clue-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #clue-list li {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #ddd;
    }

    #clue-list li:last-child {
        border-bottom: none;
    }

    .clue-icon {
        color: #d4af37;
        margin-right: 8px;
    }

    .no-results {
        padding: 15px;
        text-align: center;
        color: #aaa;
    }

    /* Guess History Section */
    .champion-table {
        max-width: 800px;
        margin: 0 auto 20px;
        background: rgba(21, 24, 35, 0.7);
        border-radius: 10px;
        padding: 15px;
    }

    .guess-history-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .guess-item {
        width: 80px;
        text-align: center;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 8px;
        transition: all 0.2s ease;
    }

    .guess-item:hover {
        transform: translateY(-3px);
        background: rgba(0, 0, 0, 0.5);
    }

    .guess-item.correct {
        border: 2px solid #27ae60;
    }

    .guess-item.wrong {
        border: 2px solid #e74c3c;
    }

    .guess-item .champion-img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 8px;
        border: 2px solid #333;
    }

    .guess-item .champion-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .guess-item .champion-name {
        font-size: 12px;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }


    /* Ability Guess Section */
    .ability-guess-section {
        max-width: 800px;
        margin: 0 auto 20px;
        padding: 20px;
        background: rgba(21, 24, 35, 0.7);
        border-radius: 10px;
        text-align: center;
    }

    .champion-revealed {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .champion-image-wrapper {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid #d4af37;
        margin: 0 auto 10px;
        background: #111;
    }

    #champion-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .champion-revealed h3 {
        font-size: 20px;
        color: #fff;
    }

    .ability-prompt h3 {
        color: #fff;
        margin-bottom: 15px;
    }

    .ability-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .ability-btn {
        width: 80px;
        height: 60px;
        border: 2px solid #d4af37;
        background: rgba(212, 175, 55, 0.1);
        color: #fff;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .ability-btn:hover {
        background: rgba(212, 175, 55, 0.3);
        transform: translateY(-3px);
    }

    /* Result Banner */
    #result-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 500px;
        background: rgba(21, 24, 35, 0.95);
        border: 2px solid #d4af37;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        z-index: 100;
        animation: slide-up 0.5s ease;
    }

    @keyframes slide-up {
        from { transform: translate(-50%, 100px); opacity: 0; }
        to { transform: translate(-50%, 0); opacity: 1; }
    }

    .result-content {
        display: flex;
        align-items: center;
    }

    .result-small-img {
        width: 200px;
        height: auto;
        margin-right: 15px;
    }

    .result-text {
        flex: 1;
    }

    .score-info {
        margin: 10px auto;
        text-align: center;
    }

    .score-value {
        font-size: 36px;
        font-weight: 700;
        color: #d4af37;
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }

    .score-label {
        font-size: 14px;
        color: #d4af37;
        display: block;
        letter-spacing: 2px;
        font-weight: 600;
    }

    .ability-info {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }

    .ability-key {
        background: #d4af37;
        color: #000;
        font-weight: bold;
        padding: 5px 12px;
        border-radius: 6px;
    }

    .ability-name {
        color: #fff;
        font-size: 18px;
    }

    /* Player info */
    .player-info {
        margin: 5px auto 10px;
        text-align: center;
        color: #fff;
    }

    .player-label {
        font-weight: 600;
        margin-right: 5px;
    }

    .player-name {
        color: #d4af37;
        font-weight: 600;
    }

    .result-buttons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 12px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .btn-primary {
        background: #d4af37;
        color: #000;
    }

    .btn-secondary {
        background: rgba(255,255,255,0.1);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
    }

    .btn-primary:hover {
        background: #e5c249;
        transform: translateY(-2px);
    }

    .btn-secondary:hover {
        background: rgba(255,255,255,0.2);
        transform: translateY(-2px);
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.8);
        overflow-y: auto;
    }

    .modal-content {
        background-color: #151823;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #333;
        border-radius: 10px;
        width: 90%;
        max-width: 800px;
        animation: fade-in 0.3s ease;
        position: relative;
    }

    @keyframes fade-in {
        from { opacity: 0; transform: translateY(-30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .close-modal {
        color: #aaa;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10;
    }

    .close-modal:hover {
        color: #d4af37;
    }

    /* Champion Detail Styles */
    .champion-detail {
        color: #fff;
    }

    .detail-header {
        padding: 20px 0;
    }

    .subheading {
        font-size: 14px;
        color: #d4af37;
        text-transform: uppercase;
    }

    .champion-name {
        font-size: 32px;
        margin: 10px 0;
        color: #fff;
    }

    .description {
        font-size: 15px;
        line-height: 1.6;
        color: #ccc;
        max-height: 150px;
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .detail-image img {
        width: 100%;
        display: block;
        object-fit: cover;
        border-radius: 5px;
        max-height: 300px;
    }

    .detail-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 20px;
        padding: 0;
        list-style-type: none;
    }

    .detail-stats li {
        flex: 1 1 120px;
        background: rgba(0,0,0,0.2);
        border: 1px solid #333;
        border-radius: 6px;
        padding: 10px;
        font-size: 14px;
        color: #ddd;
    }

    .detail-stats .label {
        display: block;
        font-size: 12px;
        color: #777;
        margin-bottom: 4px;
    }

    /* Hide elements with class "hidden" */
    .hidden {
        display: none !important;
    }

        /* Ability Selection Modal */
    #ability-selection-modal .modal-content {
        max-width: 500px;
        text-align: center;
    }

    #ability-selection-modal h2 {
        color: #d4af37;
        margin-bottom: 10px;
    }

    #ability-selection-modal .champion-revealed {
        margin: 20px 0;
    }

    #ability-selection-modal .ability-image-container {
        width: 128px;
        height: 128px;
        margin: 20px auto;
        border-radius: 10px;
        border: 3px solid #d4af37;
        overflow: hidden;
    }

    #ability-selection-modal .ability-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #confetti-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
    }

    .close-ability-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        color: #aaa;
        cursor: pointer;
    }

    .close-ability-modal:hover {
        color: #d4af37;
    }

    .notification {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(231, 76, 60, 0.9);
        color: white;
        padding: 12px 20px;
        border-radius: 5px;
        z-index: 1000;
        display: flex;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
        max-width: 80%;
        font-weight: 500;
    }

    .notification.hidden {
        top: -100px;
        opacity: 0;
    }

    .notification-close {
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        margin-left: 10px;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .result-content {
            flex-direction: column;
            text-align: center;
        }

        .result-small-img {
            margin: 0 auto 10px;
        }

        .modal-content {
            margin: 10% auto;
            width: 95%;
            padding: 15px;
        }

        .detail-stats li {
            flex: 1 1 100px;
        }

        .result-buttons {
            flex-direction: column;
        }
    }