/* Randomness Generator Page Styles */

.randomness-main {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 80px);
}

/* Page Hero Section */
.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-left {
    flex: 1;
    z-index: 1;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.page-title i {
    font-size: 2.5rem;
    -webkit-text-fill-color: #8b5cf6;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #9ca3af;
    margin: 0;
    max-width: 600px;
}

.hero-right {
    z-index: 1;
}

.disclaimer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #60a5fa;
    font-size: 0.9rem;
}

.disclaimer i {
    font-size: 1.2rem;
}

/* Game Selector Tabs */
.game-selector {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.pill-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.pill-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #e5e7eb;
}

.pill-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    color: white;
}

.pill-tab i {
    font-size: 1.1rem;
}

/* Generator Panels */
.generator-panel {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

.generator-panel.hidden {
    display: none;
}

.generator-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.generator-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.generator-header h3 i {
    color: #8b5cf6;
}

.generator-header p {
    margin: 0;
    color: #9ca3af;
    font-size: 1rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

.setting-select,
.setting-input {
    padding: 0.75rem 1rem;
    background: rgba(123, 47, 247, 0.1);
    border: 1px solid rgba(123, 47, 247, 0.3);
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.setting-input {
    background-image: none;
    padding-right: 1rem;
}

.setting-select:hover,
.setting-input:hover {
    background-color: rgba(123, 47, 247, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.setting-select:focus,
.setting-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background-color: rgba(123, 47, 247, 0.2);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.setting-select:active {
    background-color: rgba(139, 92, 246, 0.25);
    transform: translateY(1px);
}

/* Dropdown option styling */
.setting-select option {
    background: #1a1a2e;
    color: #e5e7eb;
    padding: 0.5rem;
}

.setting-select option:hover {
    background: rgba(123, 47, 247, 0.2);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Generate Button */
.generate-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.generate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.generate-btn:hover::after {
    opacity: 1;
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

/* Reset Button */
.reset-btn {
    padding: 1rem 1.5rem;
    background: rgba(107, 114, 128, 0.2);
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-radius: 12px;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-btn:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.5);
    color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.reset-btn:active {
    transform: translateY(0);
}

/* Toggle Switch */
.toggle-wrapper {
    display: inline-block;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: inline-block;
    width: 50px;
    height: 26px;
    background: rgba(75, 85, 99, 0.3);
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.toggle-switch {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-label {
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border-color: transparent;
}

.toggle-input:checked + .toggle-label .toggle-switch {
    transform: translateX(24px);
}

/* Result Display */
.result-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(17, 24, 39, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.3);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Info Box */
.result-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(123, 47, 247, 0.1);
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
}

.result-info p {
    margin: 0.5rem 0;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.result-info strong {
    color: #8b5cf6;
    font-weight: 600;
}

.disclaimer {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    border-radius: 6px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.mines-shown {
    color: #ef4444;
    font-weight: 500;
}

.mines-hidden {
    color: #10b981;
    font-style: italic;
}

/* Mines Grid Display */
.mines-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: min(92vw, 560px);
    margin: 1.5rem auto;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
}

.mines-grid.grid-5 {
    grid-template-columns: repeat(5, 1fr);
    max-width: min(92vw, 480px);
}

.mines-grid.grid-7 {
    grid-template-columns: repeat(7, 1fr);
    max-width: min(92vw, 560px);
}

.mine-tile {
    aspect-ratio: 1;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mine-tile:hover {
    transform: scale(1.05);
    border-color: #8b5cf6;
}

.mine-tile.safe {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
    border-color: #10b981;
    color: #10b981;
}

.mine-tile.safe::after {
    content: attr(data-order);
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.mine-tile.mine {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Roulette Display */
.roulette-wheel {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.wheel-spinner {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ef4444 0deg 10deg,
        #1f2937 10deg 20deg,
        #ef4444 20deg 30deg,
        #1f2937 30deg 40deg,
        #ef4444 40deg 50deg,
        #1f2937 50deg 60deg,
        #ef4444 60deg 70deg,
        #1f2937 70deg 80deg,
        #ef4444 80deg 90deg,
        #1f2937 90deg 100deg,
        #ef4444 100deg 110deg,
        #1f2937 110deg 120deg,
        #ef4444 120deg 130deg,
        #1f2937 130deg 140deg,
        #ef4444 140deg 150deg,
        #1f2937 150deg 160deg,
        #ef4444 160deg 170deg,
        #1f2937 170deg 180deg,
        #ef4444 180deg 190deg,
        #10b981 190deg 200deg,
        #ef4444 200deg 210deg,
        #1f2937 210deg 220deg,
        #ef4444 220deg 230deg,
        #1f2937 230deg 240deg,
        #ef4444 240deg 250deg,
        #1f2937 250deg 260deg,
        #ef4444 260deg 270deg,
        #1f2937 270deg 280deg,
        #ef4444 280deg 290deg,
        #1f2937 290deg 300deg,
        #ef4444 300deg 310deg,
        #1f2937 310deg 320deg,
        #ef4444 320deg 330deg,
        #1f2937 330deg 340deg,
        #ef4444 340deg 350deg,
        #1f2937 350deg 360deg
    );
    border: 8px solid #8b5cf6;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    position: relative;
    animation: spinWheel 4s ease-in-out infinite;
}

@keyframes spinWheel {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.wheel-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    border-radius: 50%;
    border: 4px solid #1f2937;
}

.roulette-suggestion {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.roulette-suggestion h4 {
    margin: 0 0 1rem 0;
    color: #e5e7eb;
}

#roulette-bets-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bet-item {
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bet-item:hover {
    border-color: #8b5cf6;
    transform: translateX(5px);
}

.bet-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5cf6;
}

.bet-type {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Crash Display */
.crash-chart {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    height: 300px;
}

.crash-targets {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
}

.crash-targets h4 {
    margin: 0 0 1rem 0;
    color: #e5e7eb;
}

#crash-targets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.target-item {
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.target-item:hover {
    border-color: #8b5cf6;
    transform: scale(1.05);
}

.target-round {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.target-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8b5cf6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dice Display */
.dice-visualization {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.dice-3d {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

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

.dice-3d i {
    font-size: 5rem;
    color: #8b5cf6;
    animation: rotateDice 2s linear infinite;
}

@keyframes rotateDice {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dice-predictions {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.dice-predictions h4 {
    margin: 0 0 1rem 0;
    color: #e5e7eb;
}

#dice-predictions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prediction-item {
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.prediction-item:hover {
    border-color: #8b5cf6;
    transform: translateX(5px);
}

.prediction-roll {
    font-size: 0.9rem;
    color: #9ca3af;
}

.prediction-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8b5cf6;
}

.prediction-bet {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 6px;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Result Info */
.result-info {
    text-align: center;
    margin-top: 1rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-hero {
        flex-direction: column;
        gap: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .pill-tabs {
        flex-wrap: wrap;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .wheel-spinner {
        width: 250px;
        height: 250px;
    }

    #crash-targets-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
