/* Custom styles for Chooser Wheel */

:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --input-bg: #ffffff;
    --input-border: #ced4da;
}

.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e9ecef;
    --card-bg: #2d2d2d;
    --border-color: #495057;
    --input-bg: #3a3a3a;
    --input-border: #495057;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-control,
.form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: #0d6efd;
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--input-bg);
}

/* Wheel container */
.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
    position: relative;
}

#wheelCanvas,
#fullscreenWheelCanvas {
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
    background: transparent;
    display: block;
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.dark-mode #wheelCanvas,
.dark-mode #fullscreenWheelCanvas {
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.dark-mode .spin-button-round {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Celebration Canvas */
.celebration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Scroll Reveal Sections */
.scroll-reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Spin button - centered on wheel */
.spin-button-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.spin-button-center button {
    pointer-events: auto;
}

.spin-button-round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    transform: none;
}

.spin-button-round:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.spin-button-round:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#spinBtn, #fullscreenSpinBtn {
    font-size: 1.2rem;
}

#stopBtn, #fullscreenStopBtn {
    font-size: 1.2rem;
}

/* Legacy support for old button styles */
#spinBtn.old-style {
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 50px;
    width: auto;
    height: auto;
}

/* Name list */
#namesList {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background-color: var(--card-bg);
}

.remove-name-btn {
    padding: 2px 8px;
    font-size: 0.9rem;
}

.remove-name-btn:hover {
    transform: scale(1.1);
}

/* Settings */
.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Modal */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .wheel-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .wheel-container {
        min-height: 250px;
    }
    
    .spin-button-round {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }
    
    .spin-button-round:hover:not(:disabled) {
        transform: scale(1.1);
    }
}

/* Scrollbar styling */
.list-group::-webkit-scrollbar {
    width: 8px;
}

.list-group::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

.list-group::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.list-group::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Animation for winner highlight */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Button transitions */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Card hover effect */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .card:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Header styling */
.navbar-light {
    background-color: #e9ecef !important;
}

.navbar-light .navbar-brand {
    color: #212529 !important;
}

/* Dark mode AdSense placeholder */
.adsense-placeholder {
    min-height: 600px;
    background-color: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode card headers */
.dark-mode .card-header {
    background-color: var(--input-bg);
    border-bottom-color: var(--border-color);
    color: var(--text-color);
}

/* Dark mode hr */
.dark-mode hr {
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Dark mode text muted */
.dark-mode .text-muted {
    color: #adb5bd !important;
}

/* Dark mode buttons */
.dark-mode .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.dark-mode .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.dark-mode .btn-success {
    background-color: #198754;
    border-color: #198754;
}

.dark-mode .btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.dark-mode .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.dark-mode .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.dark-mode .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.dark-mode .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.dark-mode .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.dark-mode .btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Dark mode form labels */
.dark-mode .form-label {
    color: var(--text-color);
}

/* Dark mode navbar */
.dark-mode .navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid var(--border-color);
}

.dark-mode .navbar-light {
    background-color: #2d2d2d !important;
    border-bottom-color: var(--border-color);
}

.dark-mode .navbar-brand {
    color: var(--text-color) !important;
}

.dark-mode .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .btn-outline-secondary:hover {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Footer */
.footer {
    margin-top: auto;
}

.footer-link {
    color: #0d6efd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.footer-link.streaming-link {
    color: #6f42c1;
}

.footer-link.streaming-link:hover {
    color: #5a32a3;
}

.footer-icon {
    font-size: 0.9em;
}

.dark-mode .footer-link {
    color: #6ea8fe;
}

.dark-mode .footer-link:hover {
    color: #4dabf7;
}

.dark-mode .footer-link.streaming-link {
    color: #b197fc;
}

/* Fullscreen container */
#fullscreenContainer {
    background-color: var(--bg-color, #fff);
}

.dark-mode #fullscreenContainer {
    background-color: var(--bg-color, #1a1a1a);
}

#fullscreenContainer:fullscreen {
    background-color: var(--bg-color, #fff);
}

.dark-mode #fullscreenContainer:fullscreen {
    background-color: var(--bg-color, #1a1a1a);
}

/* Canvas Loading Indicator */
.wheel-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wheel-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.wheel-loader-text {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.wheel-container {
    position: relative;
}

#wheelCanvas {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#wheelCanvas.loaded {
    opacity: 1;
}

/* Mega Menu Styles */
/* Mega Menu Styles */
header.navbar {
    position: relative;
}

header.navbar .container-fluid {
    position: relative;
}

.navbar-nav {
    position: relative;
}

.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    max-width: 900px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    z-index: 1050;
}

/* Active state for All Wheels nav link when dropdown is open */
.mega-menu .nav-link[aria-expanded="true"],
.mega-menu .nav-link.show {
    background-color: var(--input-bg);
    color: #0d6efd;
    border-radius: 0.375rem;
}

.dark-mode .mega-menu .nav-link[aria-expanded="true"],
.dark-mode .mega-menu .nav-link.show {
    background-color: var(--input-bg);
    color: #6ea8fe;
}

.dark-mode .mega-menu .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.mega-menu-content {
    min-width: 900px;
}

.mega-menu-column {
    padding: 0 1rem;
    border-right: 1px solid var(--border-color);
}

.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-column .dropdown-item {
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: block;
    text-decoration: none;
}

.mega-menu-column .dropdown-item:hover {
    background-color: var(--input-bg);
    color: #0d6efd;
    transform: translateX(5px);
}

.dark-mode .mega-menu-column .dropdown-item:hover {
    color: #6ea8fe;
}

.mega-menu-column .dropdown-item:focus {
    background-color: var(--input-bg);
    color: #0d6efd;
}

/* Responsive adjustments for mega menu */
@media (max-width: 991.98px) {
    .mega-menu .dropdown-menu {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin-top: 0.5rem;
    }
    
    .mega-menu-content {
        min-width: 100%;
    }
    
    .mega-menu-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .mega-menu-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* Picker Description Section Styles */
/* Picker Page Title (above wheel) */
.picker-page-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .picker-page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
}

.picker-description {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.picker-description h2 {
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.picker-description h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.picker-specific-content p,
.common-tool-description p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.picker-specific-content p:last-child,
.common-tool-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .picker-description {
        padding: 1.5rem;
    }
    
    .picker-description h2 {
        font-size: 1.5rem;
    }
    
    .picker-description h3 {
        font-size: 1.25rem;
    }
    
    .picker-specific-content p,
    .common-tool-description p {
        font-size: 0.95rem;
        text-align: left;
    }
}

