/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sobrescrever estilos do main.css */
.standby-page {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    background: #000 !important;
    background-image: none !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    min-height: 100vh !important;
}

/* Container de mídias */
.standby-media-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Item de mídia */
.standby-media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    z-index: 1;
}

.standby-media-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Imagens */
.standby-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Vídeos */
.standby-media-item .video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.standby-media-item iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    border: none;
    pointer-events: none; /* Desabilitar interações */
    overflow: hidden;
}

/* Fallback quando não há mídias */
.standby-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.standby-fallback h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.standby-fallback p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Overlay com botão de iniciar */
.standby-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding-bottom: 8vh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.standby-start-button {
    pointer-events: auto;
    background: #00d26a; /* Consultare Green */
    color: #fff;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 210, 106, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.standby-start-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.standby-start-button:hover {
    background: #00b35a;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 106, 0.5);
}

.standby-start-button:hover::after {
    opacity: 1;
}

.standby-start-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 210, 106, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 23, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 0.25rem;
}

.form-group input {
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.25rem;
    color: #0f172a;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #00d26a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 210, 106, 0.1);
}

.form-group input::placeholder {
    color: #cbd5e1;
}

.btn-primary {
    background: #00d26a;
    color: #fff;
    border: none;
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #00b35a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 210, 106, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 480px) {
    .standby-start-button {
        width: 90%;
        font-size: 1.4rem;
        padding: 1.2rem;
    }
    
    .modal-container {
        padding: 2rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.75rem;
    }
}

