has/src/components/TvProfileSelector.css

436 lines
8.9 KiB
CSS

/* ==========================================================================
HAS - Android TV Profile Selector & Arc Navigation
========================================================================== */
.has-tv-profile-screen {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
background: radial-gradient(circle at 50% 30%, #111827 0%, #030712 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #f8fafc;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
overflow: hidden;
user-select: none;
z-index: 1000;
}
/* Background Ambient Glow */
.has-tv-profile-glow {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
width: 700px;
height: 400px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(14, 165, 233, 0.05) 50%, transparent 80%);
filter: blur(60px);
pointer-events: none;
}
/* Header */
.has-tv-profile-header {
text-align: center;
margin-bottom: 24px;
z-index: 2;
}
.has-tv-profile-logo {
height: 44px;
margin-bottom: 12px;
filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}
.has-tv-profile-title {
font-size: 32px;
font-weight: 800;
letter-spacing: -0.5px;
margin: 0 0 6px 0;
color: #ffffff;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.has-tv-profile-subtitle {
font-size: 15px;
color: #94a3b8;
margin: 0;
font-weight: 500;
}
/* Arc Stage Container */
.has-tv-arc-stage {
position: relative;
width: 880px;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
/* SVG Arc Line */
.has-tv-arc-svg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.has-tv-arc-path {
fill: none;
stroke: rgba(255, 255, 255, 0.22);
stroke-width: 2.5;
stroke-linecap: round;
filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
/* Profile Items on the Arc */
.has-tv-profile-node {
position: absolute;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
background: none;
border: none;
padding: 0;
outline: none;
transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.has-tv-profile-avatar-circle {
width: 108px;
height: 108px;
border-radius: 50%;
background: #cbd5e1;
display: flex;
align-items: center;
justify-content: center;
border: 3px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
position: relative;
overflow: hidden;
transition: all 0.22s ease;
}
.has-tv-profile-avatar-circle img {
width: 100%;
height: 100%;
object-fit: cover;
}
.has-tv-profile-avatar-icon {
width: 58px;
height: 58px;
color: #1e293b;
}
.has-tv-profile-name {
margin-top: 10px;
font-size: 16px;
font-weight: 700;
color: #cbd5e1;
text-align: center;
max-width: 140px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
transition: color 0.2s ease;
}
.has-tv-profile-badge {
font-size: 10px;
font-weight: 800;
background: #6366f1;
color: #ffffff;
padding: 2px 8px;
border-radius: 9999px;
margin-top: 3px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Focused Profile Node */
.has-tv-profile-node.focused {
transform: translate(-50%, -50%) scale(1.18);
z-index: 10;
}
.has-tv-profile-node.focused .has-tv-profile-avatar-circle {
border-color: #6366f1;
box-shadow: 0 0 35px rgba(99, 102, 241, 0.9), 0 0 0 4px #ffffff;
background: #e2e8f0;
}
.has-tv-profile-node.focused .has-tv-profile-name {
color: #ffffff;
text-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}
/* Delete badge on focused profile */
.has-tv-profile-delete-btn {
position: absolute;
top: -4px;
right: -4px;
width: 28px;
height: 28px;
border-radius: 50%;
background: #ef4444;
border: 2px solid #ffffff;
color: #ffffff;
font-size: 14px;
font-weight: 800;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
transition: transform 0.15s ease;
}
.has-tv-profile-delete-btn:hover {
transform: scale(1.2);
}
/* Plus Button (Center Under Arc) */
.has-tv-plus-node {
position: absolute;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
background: none;
border: none;
padding: 0;
outline: none;
transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
z-index: 5;
}
.has-tv-plus-circle {
width: 82px;
height: 82px;
border-radius: 50%;
background: #cbd5e1;
display: flex;
align-items: center;
justify-content: center;
border: 3px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
color: #1e293b;
font-size: 42px;
font-weight: 300;
line-height: 1;
transition: all 0.22s ease;
}
.has-tv-plus-label {
margin-top: 8px;
font-size: 14px;
font-weight: 700;
color: #94a3b8;
transition: color 0.2s ease;
}
.has-tv-plus-node.focused {
transform: translate(-50%, -50%) scale(1.18);
z-index: 10;
}
.has-tv-plus-node.focused .has-tv-plus-circle {
border-color: #6366f1;
background: #ffffff;
color: #6366f1;
box-shadow: 0 0 35px rgba(99, 102, 241, 0.9), 0 0 0 4px #ffffff;
}
.has-tv-plus-node.focused .has-tv-plus-label {
color: #ffffff;
text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}
/* Footer Hints */
.has-tv-profile-footer {
margin-top: 20px;
display: flex;
align-items: center;
gap: 20px;
font-size: 13px;
color: #64748b;
font-weight: 600;
z-index: 2;
}
.has-tv-profile-hint-pill {
background: rgba(255, 255, 255, 0.06);
padding: 6px 14px;
border-radius: 9999px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.has-tv-profile-switch-desktop {
background: none;
border: none;
color: #94a3b8;
font-size: 13px;
cursor: pointer;
text-decoration: underline;
transition: color 0.15s ease;
}
.has-tv-profile-switch-desktop:hover {
color: #ffffff;
}
/* ==========================================================================
FOCUSED 3-BUTTON TV LOGIN MODAL (Strict Remote Trap)
========================================================================== */
.has-tv-login-overlay {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
background: rgba(3, 7, 18, 0.85);
backdrop-filter: blur(16px);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
animation: fadeInModal 0.2s ease forwards;
}
@keyframes fadeInModal {
from {
opacity: 0;
transform: scale(0.96);
}
to {
opacity: 1;
transform: scale(1);
}
}
.has-tv-login-card {
width: 520px;
background: rgba(15, 23, 42, 0.95);
border: 2px solid rgba(99, 102, 241, 0.4);
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(99, 102, 241, 0.35);
border-radius: 24px;
padding: 36px 40px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.has-tv-login-card-header {
margin-bottom: 26px;
}
.has-tv-login-card-title {
font-size: 26px;
font-weight: 800;
color: #ffffff;
margin: 0 0 6px 0;
}
.has-tv-login-card-desc {
font-size: 14px;
color: #94a3b8;
margin: 0;
}
.has-tv-login-form {
width: 100%;
display: flex;
flex-direction: column;
gap: 16px;
}
/* Exactly 3 Focusable TV Controls */
.has-tv-login-input {
width: 100%;
height: 56px;
background: rgba(30, 41, 59, 0.8);
border: 2px solid rgba(255, 255, 255, 0.12);
border-radius: 14px;
padding: 0 20px;
font-size: 17px;
font-weight: 600;
color: #ffffff;
outline: none;
box-sizing: border-box;
transition: all 0.18s ease;
}
.has-tv-login-input::placeholder {
color: #64748b;
font-weight: 400;
}
.has-tv-login-input.focused,
.has-tv-login-input:focus {
border-color: #6366f1;
background: rgba(30, 41, 59, 1);
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35), 0 0 20px rgba(99, 102, 241, 0.6);
transform: scale(1.02);
}
.has-tv-login-submit-btn {
width: 100%;
height: 58px;
margin-top: 6px;
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
border: 2px solid transparent;
border-radius: 14px;
color: #ffffff;
font-size: 18px;
font-weight: 800;
letter-spacing: 0.5px;
cursor: pointer;
outline: none;
box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
transition: all 0.18s ease;
}
.has-tv-login-submit-btn.focused,
.has-tv-login-submit-btn:focus {
border-color: #ffffff;
box-shadow: 0 0 0 4px #ffffff, 0 0 30px rgba(124, 58, 237, 0.9);
transform: scale(1.03);
}
.has-tv-login-submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Error message banner */
.has-tv-login-error-banner {
width: 100%;
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.4);
border-radius: 10px;
padding: 10px 14px;
font-size: 13.5px;
color: #fca5a5;
font-weight: 600;
text-align: left;
box-sizing: border-box;
}
.has-tv-login-card-hint {
margin-top: 18px;
font-size: 13px;
color: #64748b;
font-weight: 500;
}