:root {
    --primary-background: /*light-dark(*/#0f172a/*, #f1f5f9)*/; /* slate-900 / slate-50 */
    --primary-text: /*light-dark(*/#f8fafc/*, #1e293b)*/; /* slate-50 / slate-800 */

    color-scheme: light dark;
}

/* Custom styles to enhance the Stream Deck physical button aesthetic */
body {
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.deck-grid {
    display: grid;
    gap: 1.5rem;
    
    /* Responsive grid - 2 cols on mobile */
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    /* Responsive grid - 3 cols on tablet */
    .deck-grid { 
        grid-template-columns: repeat(3, minmax(0, 1fr)); 
    }
}

@media (min-width: 1024px) {
    /* Responsive grid - 4 cols on desktop */
    .deck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* The Button itself */
.booth-btn {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow:  
        8px 8px 16px #060911,
        -8px -8px 16px #182543;
    border: 1px solid #334155;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Press effect */
.booth-btn:active {
    transform: scale(0.95);
    box-shadow: inset 4px 4px 10px #060911, inset -4px -4px 10px #182543;
}

/* Inner content container - this gets blurred */
.booth-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

/* Company Logo placeholder styling */
.logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #94a3b8;
}

.company-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #cbd5e1;
    /* Truncate long names */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* The Checkmark overlay */
.check-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy pop */
    pointer-events: none; /* Let clicks pass through if needed */
}

.check-icon {
    width: 64px;
    height: 64px;
    color: #22c55e; /* Green 500 */
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.6));
}

/* --- VISITED STATE --- */
.booth-btn.visited .booth-content {
    filter: blur(8px);
    opacity: 0.3;
}

.booth-btn.visited .check-overlay {
    opacity: 1;
    transform: scale(1);
}
        
.booth-btn.visited {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}