@keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-24px); }
}
/* index.css - Extracted from index.html inline styles */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(90deg, #5872ff, #f868c9);
}
body.djq-layout { overflow-x: visible; }

@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
        min-height: -webkit-fill-available;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-enter {
    opacity: 0;
    transform: translateY(30px);
}
.step-enter.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}
.step-panel {
    overflow: visible;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Song autocomplete dropdown */
.song-autocomplete-dropdown {
    position: fixed;
    z-index: 99999;
    background: #1f2937;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.submission-flow {
    min-height: 100vh;
    min-height: 100dvh;
}

.rotation-screen {
    background: linear-gradient(90deg, #5872ff, #f868c9);
}

/* Clear button styles */
.input-wrapper {
    position: relative;
    overflow: visible;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.clear-btn.visible {
    display: flex;
}

.input-wrapper input {
    padding-right: 40px;
}

/* Autocomplete items – plain CSS, no Tailwind (dynamic innerHTML) */
.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: left;
    transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item:active { background: rgba(255,255,255,0.12); }
.autocomplete-item .song-name { color: #fff; font-weight: 500; font-size: 15px; }
.autocomplete-item .song-artist { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 2px; }

/* Native app feel: disable callouts, touch handling */
* { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
* { -webkit-overflow-scrolling: touch; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, a { -webkit-tap-highlight-color: transparent; }
button:active, .btn:active { transform: scale(0.98); opacity: 0.9; }
body { overscroll-behavior-y: contain; }
@supports (padding: max(0px)) {
    body { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

/* Haptic & shake animations */
@keyframes haptic { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.98); } }
.haptic-feedback:active { animation: haptic 0.1s ease-in-out; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.shake { animation: shake 0.5s ease-in-out; }

/* Index: native-like inputs & buttons */
input[type="text"] { font-size: 16px; border-radius: 12px; transition: all 0.2s ease; }
input[type="text"]:focus { transform: scale(1.01); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
button { cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1); }
button:active { transform: scale(0.97); }

/* Shimmer loading effect */
@keyframes shimmer { 0% { background-position: -468px 0; } 100% { background-position: 468px 0; } }
.loading { background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%); background-size: 468px 100%; animation: shimmer 1.2s ease-in-out infinite; }

/* DJ Home layout */
.dj-home-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 4rem;
    padding: 1rem;
    overflow: visible;
}
.dj-home-logo-wrap {
    width: 50%;
    min-width: min(35vw, 35vh, 1120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
}
.dj-home-logo {
    flex-shrink: 0;
    width: min(35vw, 35vh, 1120px);
    height: min(35vw, 35vh, 1120px);
    overflow: visible;
}
.dj-home-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    animation: logo-float 2.5s ease-in-out infinite;
}
@keyframes logo-float {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}
.dj-home-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Mobile DJ home layout */
@media (max-width: 640px) {
    .dj-home-container { flex-direction: column; }
    .dj-home-logo-wrap { order: 1; width: 100%; }
    .dj-home-logo { width: min(35vw, 35vh, 280px); height: min(35vw, 35vh, 280px); }
    .dj-home-logo img { width: 100%; height: 100%; object-fit: contain; }
    .dj-home-content { order: 2; }
    .partner-logos-desktop { display: none !important; }
    .partner-logos-mobile { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; order: 3; }
}
@media (min-width: 641px) {
    .partner-logos-mobile { display: none !important; }
}
.partner-logos-mobile {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.partner-logos-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Tip calculator slider */
#tipCalcSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: white; cursor: pointer; }
#tipCalcSlider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: white; cursor: pointer; border: none; }
