/* AISafe V2 Crisis-Driven Homepage Styles */

/* Crisis Hero Section */
.crisis-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 0 4rem;
    margin-top: -1rem;
    position: relative;
    overflow: hidden;
}

.crisis-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23dc3545" opacity="0.1"></path></svg>') no-repeat bottom;
    background-size: cover;
}

/* Urgency Banner */
.urgency-banner {
    background: #dc3545;
    border-bottom: 3px solid #a02828;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.breaking-ticker {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Countdown Timer */
.countdown-timer {
    font-family: 'Courier New', monospace;
    margin: 2rem 0;
}

.time-block {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.time-value {
    font-size: 3rem;
    font-weight: bold;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.time-label {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Stats Bar */
.stats-bar {
    background: rgba(0,0,0,0.8) !important;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    position: relative;
    padding: 0.5rem 0;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: #444;
}

.stat-item:last-child::after {
    display: none;
}

.stat-value {
    font-variant-numeric: tabular-nums;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Industry Death Clock */
.death-clock {
    background: #0d0d0d;
    border: 2px solid #dc3545;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.3);
}

.industry-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    transition: all 0.3s;
    cursor: pointer;
}

.industry-timer:hover {
    background: rgba(220, 53, 69, 0.1);
    padding-left: 2rem;
    border-left: 4px solid #dc3545;
}

.industry-timer:last-child {
    border-bottom: none;
}

.automation-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.automation-progress {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 100%);
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}

.automation-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Multi-Step Form */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s;
}

.step.active {
    background: #dc3545;
    color: white;
    transform: scale(1.2);
}

.step.completed {
    background: #28a745;
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}

.step:last-child::after {
    display: none;
}

/* Form Controls */
.job-suggestion {
    cursor: pointer;
    transition: all 0.2s;
}

.job-suggestion:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

/* CEO Warning Cards */
.warning-card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,193,7,0.3);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.warning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,193,7,0.3);
    border-color: rgba(255,193,7,0.5);
}

.warning-card::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    color: rgba(255,193,7,0.1);
    transform: rotate(15deg);
}

.warning-card blockquote {
    border-left: 3px solid #ffc107;
    padding-left: 1rem;
    margin-left: 0;
}

/* Evidence Cards */
.evidence-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 100%;
}

.evidence-card:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(220,53,69,0.2);
}

.evidence-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Story Cards */
.story-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.story-card.success {
    border-color: #28a745;
}

.story-card.failure {
    border-color: #dc3545;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.story-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    transform: rotate(15deg);
}

/* Activity Feed */
.activity-feed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 350px;
}

.feed-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:last-child {
    border-bottom: none;
}

/* Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s;
}

.exit-popup-content {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-popup:hover {
    color: #333;
    background: #f8f9fa;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .crisis-hero {
        padding: 2rem 0 3rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-block {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .death-clock {
        padding: 1rem;
    }
    
    .industry-timer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin: 0 0.5rem;
    }
    
    .warning-card {
        margin-bottom: 1rem;
    }
    
    .activity-feed {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .exit-popup-content {
        padding: 2rem 1rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #dc3545;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glowing Button */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Notification Badge */
.notification-badge {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 20px rgba(40,167,69,0.3);
    transform: translateX(400px);
    transition: transform 0.5s ease-out;
    z-index: 1000;
}

.notification-badge.show {
    transform: translateX(0);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .crisis-hero {
        background: white;
        color: black;
    }
    
    .stats-bar {
        background: #f8f9fa !important;
        color: black;
    }
}