/* Rulet Oyunu CSS */

/* Backgradient Dark */
.backgradientDark {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(33, 33, 33, 0.9) 100%);
    border: 1px solid rgba(33, 33, 33, 0.5);
}

/* Wrapper */
.rulet-wrapper {
    overflow: hidden;
}

.rulet-content {
    margin: 0 auto 3rem;
    width: 100%;
    padding: 0 1rem;
}

/* Grid Layout */
.rulet-grid-layout {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    height: 100%;
    width: 100%;
}

/* Header Section */
.rulet-header-section {
    grid-area: span 1 / span 12;
}

.rulet-header-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rulet-header-link {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: max-content;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.rulet-header-link svg {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
}

.rulet-header-title {
    display: none;
    font-size: 1.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Section */
.rulet-main-section {
    width: 100%;
    grid-area: span 8 / span 12;
}

.rulet-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rulet-game-area {
    position: relative;
    order: 1;
    grid-column: span 3;
    width: 100%;
    min-width: 250px;
    user-select: none;
}

/* History Section */
.rulet-history-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rulet-recent-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 1;
}

.rulet-recent-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.rulet-recent-colors {
    display: flex;
    height: 2.75rem;
    align-items: center;
    gap: 0.25rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.rulet-recent-item {
    background: rgb(15, 14, 18);
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 1px solid rgba(185, 185, 185, 0.5);
}

.rulet-recent-item.red {
    background: rgb(239, 68, 68);
}

.rulet-recent-item.green {
    background: rgb(52, 211, 153);
}

.rulet-recent-item.yellow {
    background: rgb(251, 191, 36);
}

.rulet-recent-item.black {
    background: rgb(15, 14, 18);
}

/* Stats */
.rulet-stats-container {
    display: flex;
    flex-direction: column;
    margin-left: auto;
}

.rulet-stats-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.rulet-stats-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rulet-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.rulet-stat-box {
    background: rgb(34, 197, 94);
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rulet-stat-box.red {
    background: rgb(239, 68, 68);
}

.rulet-stat-box.green {
    background: rgb(34, 197, 94);
}

.rulet-stat-box.yellow {
    background: rgb(251, 191, 36);
}

.rulet-stat-box.black {
    background: rgb(15, 14, 18);
}

/* Connection & Timer */
.rulet-connection-timer {
    margin-top: 1rem;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: white;
}

.rulet-connection-status {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.rulet-connection-label {
    color: rgba(255, 255, 255, 0.8);
}

.rulet-connection-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rulet-status-dot {
    background: rgb(74, 222, 128);
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}

.rulet-timer-wrapper {
    display: flex;
    height: 3rem;
    width: 10rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.rulet-timer {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgb(17, 17, 17);
}

.rulet-timer-value {
    font-variant-numeric: tabular-nums;
}

.rulet-timer-unit {
    margin-left: 0.25rem;
    font-size: 1.125rem;
    opacity: 0.75;
}

/* Info Controls */
.rulet-info-controls {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.rulet-info-icon,
.rulet-volume-icon {
    cursor: pointer;
    transition: color 0.3s;
}

.rulet-info-icon:hover,
.rulet-volume-icon:hover {
    color: rgb(236, 72, 153);
}

/* Track Container */
.rulet-track-container {
    position: relative;
    margin-bottom: 1.5rem;
    margin-top: 0.75rem;
    height: 8rem;
    width: 100%;
}

.rulet-track-wrapper {
    position: absolute;
    margin: 0 auto;
    display: flex;
    height: 9rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(185, 185, 185, 0.2);
    color: white;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.rulet-track-inner {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem 0;
    gap: 6px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.rulet-track-line {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 10;
    height: 90%;
    width: 4px;
    transform: translate(-50%, -50%);
    border-radius: 9999px;
    background-color: rgba(139, 92, 246, 0.8);
}

.rulet-track {
    display: flex;
    gap: 6px;
    will-change: transform;
}

/* Roulette Cards */
.rulet-card {
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 2px solid rgba(185, 185, 185, 0.5);
    width: 80px;
    height: 80px;
    transform: scale(1);
    z-index: 0;
    opacity: 0.7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rulet-card.red {
    background: rgb(239, 68, 68);
}

.rulet-card.green {
    background: rgb(52, 211, 153);
}

.rulet-card.yellow {
    background: rgb(251, 191, 36);
}

.rulet-card.black {
    background: rgb(15, 14, 18);
}

.rulet-card.centered {
    transform: scale(1.3);
    z-index: 10;
    opacity: 1;
    filter: brightness(1.3);
    box-shadow: rgba(185, 185, 185, 0.9) 0px 0px 0px 5px;
    transition: all 0.3s ease;
}

.rulet-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.3;
    filter: grayscale(100%);
}

.rulet-card.green img {
    transform: scale(0.8);
    opacity: 0.4;
}

/* Bet Section */
.rulet-bet-section {
    order: 2;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.rulet-bet-control {
    display: flex;
    height: max-content;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

/* Bet Input */
.rulet-bet-input-wrapper {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: flex-end;
}

.rulet-bet-label {
    position: absolute;
    top: -1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.rulet-bet-input-group {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding-left: 0.5rem;
}

.rulet-bet-input-group:focus-within {
    outline: 2px solid rgba(227, 146, 20, 0.6);
    outline-offset: 2px;
}

.rulet-bet-icon-wrapper {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
}

.rulet-bet-icon {
    position: relative;
    height: 2rem;
    width: 2rem;
    padding-left: 1rem;
}

.rulet-bet-icon img {
    position: absolute;
    z-index: 10;
    height: 100%;
    width: 100%;
    transform: scale(0.75);
    object-fit: contain;
    inset: 0;
}

.rulet-bet-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    background-color: rgba(227, 146, 20, 0.4);
    filter: blur(12px);
    animation: rulet-pulse 2s infinite;
}

@keyframes rulet-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.rulet-bet-input {
    width: 100%;
    border-radius: 0.5rem;
    background-color: rgb(17, 17, 17);
    padding: 0.75rem 1rem 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    outline: none;
}

.rulet-bet-input::placeholder {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* Bet Buttons */
.rulet-bet-buttons {
    position: absolute;
    right: 0.25rem;
    display: flex;
    height: 100%;
    gap: 0.25rem;
    color: white;
}

.rulet-bet-btn {
    margin: 0.25rem 0;
    display: flex;
    width: 25%;
    flex-grow: 1;
    align-items: center;
    user-select: none;
    border-radius: 0.5rem;
    background-color: rgb(33, 33, 33);
    padding: 0 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: white;
    justify-content: center;
}

.rulet-bet-btn:hover:not(:disabled) {
    background-color: rgb(43, 43, 43);
    cursor: pointer;
}

.rulet-bet-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Color Bets */
.rulet-color-bets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    color: white;
}

.rulet-color-bet-card {
    display: flex;
    height: max-content;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}

.rulet-color-bet-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    opacity: 1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rulet-color-bet-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.rulet-color-bet-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rulet-color-bet-btn:not(:disabled):active {
    transform: translateY(0);
}

.rulet-color-bet-btn.red {
    background: linear-gradient(135deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%);
}

.rulet-color-bet-btn.green {
    background: linear-gradient(135deg, rgb(52, 211, 153) 0%, rgb(16, 185, 129) 100%);
}

.rulet-color-bet-btn.yellow {
    background: linear-gradient(135deg, rgb(251, 191, 36) 0%, rgb(245, 158, 11) 100%);
}

.rulet-color-bet-btn.black {
    background: linear-gradient(135deg, rgb(75, 85, 99) 0%, rgb(55, 65, 81) 100%);
}

.rulet-bet-multiplier {
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.375rem 0.875rem;
    font-size: 1rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 3rem;
    text-align: center;
}

/* Bet History */
.rulet-bet-history {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9) 0%, rgba(33, 33, 33, 0.9) 100%);
    display: none;
    height: 100%;
    max-height: 400px;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    border-radius: 0.5rem;
    padding: 0.75rem 0.75rem;
}

.rulet-bet-history-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.rulet-bet-history-title {
    color: rgba(255, 255, 255, 0.8);
}

.rulet-bet-history-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.rulet-bet-history-total img {
    width: 14px;
    height: 14px;
}

.rulet-bet-history-total span {
    color: rgba(255, 255, 255, 0.8);
}

.rulet-bet-history-items {
    display: flex;
    flex-direction: column;
}

/* Bet History Mobile */
.rulet-bet-history-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(185, 185, 185, 0.1);
    padding: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
}

.rulet-bet-history-mobile-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.rulet-bet-history-mobile-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Responsive */
@media (min-width: 768px) {
    .rulet-header-nav {
        display: flex;
    }
    
    .rulet-header-title {
        display: block;
    }
    
    .rulet-bet-history {
        display: flex;
    }
    
    .rulet-bet-history-mobile {
        display: none;
    }
}

@media (min-width: 1280px) {
    .rulet-color-bets {
        grid-template-columns: repeat(4, 1fr);
    }
}

