/* Specifické styly pro welcome screen */
.welcome-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    padding-top: 60px;
    background: linear-gradient(135deg, #a8b8f5 0%, #b599d1 100%);
    position: relative;
    overflow-x: hidden;
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 500px;
    width: 100%;
    position: relative;
    margin-top: 0;
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
    position: relative;
    z-index: 10;
}

.app-logo {
    width: 250px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.main-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 400;
}

.step-modals-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    min-height: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.step-modal {
    position: absolute;
    top: 0;
    left: 48%;
    transform: translateX(-50%) translateY(30px) scale(0.95);
    width: 100%;
    max-width: 450px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-sizing: border-box;
}

.step-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    z-index: 2;
}

.step-modal.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-direction: column;
}

.step-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.step-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.step-content strong {
    color: #333;
}

.action-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 1rem;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.action-button:active {
    transform: translateY(0);
}

.secondary-button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.6);
}

.secondary-button:active {
    transform: translateY(0);
}

.skip-button {
    position: absolute;
    top: -30px;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 20;
}

.skip-button:hover {
    background: rgba(255,255,255,0.3);
}

.progress-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot.tip {
    background: rgba(255, 154, 158, 0.6);
}

.dot.tip.active {
    background: #ff9a9e;
    transform: scale(1.2);
}

.help-button-demo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.help-button-demo.highlighted {
    animation: bounce 1s infinite, glow 2s infinite;
}

/* Animace */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.8); }
}

/* Responzivní úpravy */
@media (max-width: 480px) {
    .welcome-page {
        padding-top: 40px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .step-modal {
        margin: 1rem 0.5rem;
        padding: 2rem 1.5rem;
    }
    
    .help-button-demo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .progress-dots {
        bottom: 20px;
    }

    .step-modals-container {
        margin: 0 auto;
        min-height: 280px;
    }
}