@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

.oyun-secici-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    font-family: var(--font-main, 'Inter', sans-serif);
}

.oyun-secici-container {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-on-dark, #e2e8f0);
}

.oyun-secici-header {
    text-align: center;
    margin-bottom: 25px;
}

.oyun-secici-header h1 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.oyun-secici-header p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.provider-select-wrapper {
    margin-bottom: 15px;
}

.provider-select-wrapper label {
    display: block;
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-header {
    position: relative;
}

.custom-dropdown-header input {
    width: 100%;
    background-color: var(--surface-800, #0d0d0d);
    border: 1px solid var(--surface-700);
    color: var(--text-on-dark, #f1f5f9);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.custom-dropdown-header input:focus {
    border-color: var(--surface-600, #222222);
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background-color: var(--bg-color, #0a0a0a);
    border: 1px solid var(--surface-700);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: none;
}

.custom-dropdown.open .custom-dropdown-list {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

.custom-dropdown-list li {
    padding: 12px 16px;
    color: var(--text-secondary, #cbd5e1);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px solid var(--surface-800);
    transition: background-color 0.2s, color 0.2s;
}

.custom-dropdown-list li:last-child {
    border-bottom: none;
}

.custom-dropdown-list li:hover {
    background-color: var(--surface-800, #0d0d0d);
    color: var(--text-light);
}

.custom-dropdown-list li.selected {
    color: var(--brand-red-hover);
    background-color: var(--surface-800, #0c0c0c);
}

.custom-dropdown-list::-webkit-scrollbar {
    width: 6px;
}
.custom-dropdown-list::-webkit-scrollbar-track {
    background: var(--surface-900); 
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}
.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: var(--surface-700); 
    border-radius: 4px;
}
.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: var(--surface-600, #222222); 
}

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

.roulette-box {
    background-color: var(--bg-color, #0a0a0a);
    border: 1px solid var(--surface-700);
    border-radius: 12px;
    padding: 20px 20px 15px 20px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pointer-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pointer-triangle {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--brand-red);
    filter: drop-shadow(0 0 6px rgba(var(--primary), 0.8));
    margin-top: -1px;
}

.pointer-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(var(--primary), 0.9), rgba(var(--primary), 0.1));
}

.roulette-status {
    text-align: center;
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.roulette-container {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    margin-bottom: 15px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.roulette-strip {
    display: flex;
    gap: 12px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
}

.oyun-secici-wrapper .game-card {
    width: 120px;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background-color: var(--surface-800, #0d0d0d);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: block;
}

.oyun-secici-wrapper .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.oyun-secici-wrapper .game-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 6px 8px;
    background: linear-gradient(to top, rgba(6, 22, 33, 1) 0%, rgba(6, 22, 33, 0.8) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.oyun-secici-wrapper .game-card-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.btn-spin {
    width: 100%;
    background-color: var(--brand-red);
    color: var(--text-light);
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-spin:hover {
    background-color: var(--brand-red);
}

.btn-spin:active {
    transform: scale(0.98);
}

.btn-spin:disabled {
    background-color: var(--surface-600, #3f4451);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.8;
}

.selected-game-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.selected-card-wrap {
    width: 160px;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 25px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--surface-800, #0d0d0d);
    display: flex;
    flex-direction: column;
}

.selected-card-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.selected-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.btn-play, .btn-spin-again {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-transform: uppercase;
}

.btn-play {
    background-color: var(--brand-red);
    color: var(--text-light);
}

.btn-play:hover {
    background-color: var(--brand-red);
}

.btn-spin-again {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--surface-700);
}

.btn-spin-again:hover {
    background: var(--surface-800, #0d0d0d);
    color: var(--text-light);
}

.hidden {
    display: none !important;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .oyun-secici-wrapper {
        margin: 20px auto;
        padding: 0 10px;
    }
    .oyun-secici-header {
        margin-bottom: 20px;
    }
    .oyun-secici-header h1 {
        font-size: 22px;
    }
    .roulette-box {
        padding: 15px 10px 10px 10px;
        margin-top: 15px;
    }
    .roulette-container {
        height: 140px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .oyun-secici-wrapper .game-card {
        width: 100px;
        height: 140px;
    }
    .oyun-secici-wrapper .game-card-info {
        padding: 20px 4px 6px;
    }
    .oyun-secici-wrapper .game-card-name {
        font-size: 10px;
    }
    .btn-spin {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    .selected-card-wrap {
        width: 140px;
        height: 200px;
        margin-bottom: 15px;
    }
    .btn-play, .btn-spin-again {
        padding: 12px;
        font-size: 12px;
    }
}
