/* Unified Button System */
/* Base button styles and modifiers for consistent button appearance */

/* Base Button Styles */
button,
.btn {
    padding: 0.5rem;
    border-radius: var(--radius-s);
    border: 1px solid var(--border-color);
    background: var(--grey5-color);
    color: var(--text-color);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-base);
    transition-property: background-color, transform, box-shadow;
}

button:hover,
.btn:hover {
    background: var(--grey6-color);
}

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary,
.primary-button {
    background-color: var(--primary-button-color);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    height: 60px;
    border-radius: var(--radius-l);
    border: none;
}

.btn-primary:hover,
.primary-button:hover {
    background-color: var(--primary-hover-color);
}

/* Secondary Button */
.btn-secondary,
.secondary-button {
    background-color: var(--secondary-button-color);
    border: none;
}

.btn-secondary:hover,
.secondary-button:hover {
    background-color: var(--secondary-hover-color);
}

/* CTA Button (Call to Action) */
.cta-button {
    padding: 0.75rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    background: var(--primary-button-color);
    color: white;
    border: none;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: var(--transition-slow);
    transition-property: background-color, transform, box-shadow;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-m);
    text-decoration: none;
}

/* CTA Button Variants */
.cta-button.large {
    padding: 1rem 3rem;
    font-size: var(--font-size-xl);
}

.cta-button.secondary {
    background: var(--secondary-button-color);
}

.cta-button.secondary:hover {
    background: var(--secondary-hover-color);
}

/* Color Buttons (for player color selection) */
.color-button {
    height: 45px;
    width: 45px;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-bold);
    border: 2px solid white;
    font-size: 0.5rem;
}

.color-button.selected {
    border: 4px solid var(--primary-button-color);
}

.black-button,
.black-button:hover {
    background-color: var(--black-marble-color);
    color: white;
}

.white-button,
.white-button:hover {
    background-color: var(--white-marble-color);
    color: black;
}

/* Modal Buttons */
.modal-button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    border: none;
    border-radius: var(--radius-s);
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    margin: 0 10px;
}

/* Close Button */
.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: var(--text-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.close-button:hover {
    background: none;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 15px;
    background-color: var(--content-primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-s);
    transition: var(--transition-slow);
}

.back-button:hover {
    background-color: var(--content-primary-hover);
    text-decoration: none;
}

.back-button i {
    margin-right: 5px;
}

/* Settings Button */
.settings-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: var(--secondary-button-color);
    color: var(--text-color);
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius-m);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    transition-property: background-color, transform;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.settings-button:hover {
    background-color: var(--secondary-hover-color);
    transform: scale(1.05);
}

.settings-button svg {
    width: 24px;
    height: 24px;
}

/* Panel Back Button */
.panel-back-button {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-s);
    transition: var(--transition-base);
}

.panel-back-button:hover {
    background-color: var(--secondary-button-color);
}

.panel-back-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--secondary-button-color);
    border: 2px solid transparent;
    border-radius: var(--radius-m);
    cursor: pointer;
    transition: var(--transition-base);
    transition-property: background-color, border-color, transform;
    flex-shrink: 0;
}

.carousel-nav:hover {
    background: var(--secondary-hover-color);
    border-color: var(--text-secondary-color);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
}

/* Play Button Container */
.play-button-container button {
    width: 100%;
    max-width: 400px;
    height: 55px;
    border-radius: var(--radius-l);
    text-align: center;
}

/* Postgame Buttons */
.postgame-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.postgame-buttons.hidden {
    display: none;
}

.postgame-buttons button {
    flex: 1;
    margin: 0;
    height: 55px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-m);
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Category Link (FAQ pages) */
.category-link {
    padding: 10px 18px;
    background-color: var(--content-highlight-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--content-text-color);
    transition: var(--transition-slow);
    transition-property: background-color, color, transform, box-shadow;
    border: 1px solid var(--content-border-color);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-md);
    display: inline-block;
}

.category-link:hover {
    background-color: var(--content-primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-s);
}
