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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Container and layout */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo styling */
.logo-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.company-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 0.5rem;
}

/* Icon styling */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.move-icon {
    width: 40px;
    height: 40px;
    color: white;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2rem;
}

.message {
    margin-bottom: 2.5rem;
}

.primary-message {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 1rem;
}

.secondary-message {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

#countdown {
    font-weight: 600;
    color: #3b82f6;
}

/* New location section */
.new-location {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.new-url-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.new-url {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    word-break: break-all;
}

.new-url:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Button styles */
.actions {
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Help section */
.help-section {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.help-link:hover {
    color: #1e40af;
}

.external-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.footer p {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive design */
@media (max-width: 640px) {
    body {
        padding: 0.5rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
    }
    
    .company-logo {
        max-width: 150px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .primary-message {
        font-size: 1rem;
    }
    
    .new-url {
        font-size: 1.25rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1rem;
    }
    
    .logo-wrapper {
        margin-bottom: 1rem;
    }
    
    .company-logo {
        max-width: 120px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .move-icon {
        width: 30px;
        height: 30px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .new-location {
        padding: 1rem;
    }
    
    .new-url {
        font-size: 1.125rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .content {
        background: white;
        border: 2px solid #000;
    }
    
    .new-location {
        border-color: #000;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.new-url:focus,
.help-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Animation for countdown */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#countdown {
    animation: pulse 1s ease-in-out infinite;
}