/* ================================================
   MAIN INTRODUCTION STYLES - System Download Page
   ================================================ */

/* Download Section Containers */
.download-section-margin {
    margin: 20px 0;
}

.download-button-container {
    margin: 15px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main Download Button */
.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--brighter-main-color) 100%);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--background-color) 0%, var(--main-color) 100%);
    color: var(--color-white);
    text-decoration: none;
}

.download-button .download-icon {
    font-size: 20px;
}

/* Download Info Badge */
.download-info-container {
    text-align: left;
    margin-top: 10px;
}

.download-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-white);
    color: var(--background-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--color-grey);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-info-badge:hover {
    background: var(--main-color);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.download-info-badge .info-arrow {
    font-size: 16px;
}

/* OS Selector Styles */
.os-selector-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.os-selector-label {
    color: var(--color-white);
    font-size: 14px;
}

.os-selector-select {
    width: auto;
    display: inline-block;
    font-size: 14px;
    padding: 4px 8px;
    text-align: left;
}

/* Sleep warning text - same size as OS selector label */
.sleep-warning-text {
    color: var(--color-white);
    font-size: 14px;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .download-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .download-info-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .os-selector-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Theme Specific Adjustments */
.app-theme-white .download-button {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-theme-white .download-button:hover {
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ================================================
   ANIMATIONS FOR MAIN INTRODUCTION
   ================================================ */

/* Super Gentle Vibration Animation */
@keyframes super-gentle-vibration {
    0% { transform: translateX(0); }
    10% { transform: translateX(-1px); }
    20% { transform: translateX(1px); }
    30% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* Gentle Shake Animation */
@keyframes gentle-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade Out Animation */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Slide In From Right */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scale In Animation */
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Glow Effect Animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(134, 74, 249, 0.5); }
    50% { box-shadow: 0 0 20px rgba(134, 74, 249, 0.8), 0 0 30px rgba(134, 74, 249, 0.6); }
}

/* Rotating Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Wobble Animation */
@keyframes wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

/* Utility Classes for Animations */
.animate-vibration {
    animation: super-gentle-vibration 0.5s ease-in-out;
}

.animate-shake {
    animation: gentle-shake 0.6s ease-in-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-fade-out {
    animation: fadeOut 0.5s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-rotate {
    animation: rotate 2s linear infinite;
}

.animate-wobble {
    animation: wobble 1s ease-in-out;
}

/* Hover Effects */
.hover-vibrate:hover {
    animation: super-gentle-vibration 0.5s ease-in-out;
}

.hover-shake:hover {
    animation: gentle-shake 0.6s ease-in-out;
}

.hover-bounce:hover {
    animation: bounce 0.6s ease-in-out;
}

.hover-glow:hover {
    animation: glow 1s ease-in-out;
}

/* Additional Utility Classes */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--main-color);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.loading-spinner {
    border: 2px solid var(--color-grey);
    border-top: 2px solid var(--main-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.success-checkmark {
    color: #28a745;
    font-size: 1.2rem;
    animation: scaleIn 0.3s ease-out;
}

.error-cross {
    color: #dc3545;
    font-size: 1.2rem;
    animation: super-gentle-vibration 0.5s ease-in-out;
}

.warning-icon {
    color: #ffc107;
    animation: gentle-shake 0.6s ease-in-out;
}

/* Progress Bar Animations */
.progress-bar-animated {
    background: linear-gradient(90deg,
        var(--main-color) 0%,
        var(--brighter-main-color) 50%,
        var(--main-color) 100%);
    background-size: 200% 100%;
    animation: progress-shine 2s linear infinite;
}

@keyframes progress-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    color: var(--background-color);
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.toast-notification.success {
    border-left: 4px solid #28a745;
}

.toast-notification.error {
    border-left: 4px solid #dc3545;
}

.toast-notification.warning {
    border-left: 4px solid #ffc107;
}

.toast-notification.info {
    border-left: 4px solid var(--main-color);
}
