/* Mode Selector Overlay */
.mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.mode-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.mode-container {
    text-align: center;
    max-width: 900px;
    padding: 40px;
}

/* Logo */
.mode-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.logo-svg {
    width: 60px;
    height: auto;
    color: #481a66;
}

.mode-brand {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Title */
.mode-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.mode-subtitle {
    font-size: 1.3rem;
    color: #b3b3b3;
    margin-bottom: 4rem;
}

/* Mode Grid */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 2rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 3px solid rgba(29, 185, 84, 0.3);
    border-radius: 25px;
    padding: 50px 35px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 99, 241, 0.15), rgba(45, 68, 102, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mode-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #481a66;
    box-shadow: 0 25px 70px rgba(17, 65, 124, 0.5);
}

.mode-card:hover::before {
    opacity: 1;
}

/* Icon */
.mode-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(29, 185, 84, 0.4));
}

/* Name */
.mode-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Description */
.mode-description {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Features */
.mode-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.mode-features span {
    font-size: 0.95rem;
    color: #888;
    transition: color 0.3s ease;
}

.mode-card:hover .mode-features span {
    color: #1db954;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-brand {
        font-size: 1.8rem;
    }
    
    .mode-title {
        font-size: 2rem;
    }
    
    .mode-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .mode-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mode-card {
        padding: 35px 25px;
    }
    
    .mode-icon {
        font-size: 3.5rem;
    }
    
    .mode-name {
        font-size: 1.8rem;
    }
    
    .mode-description {
        font-size: 1rem;
    }
}

/* Create Mode - Strudel Terminal */
.strudel-terminal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid #1db954;
    z-index: 50;
    padding: 20px;
}

.strudel-terminal.active {
    display: block;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(29, 185, 84, 0.3);
}

.terminal-title {
    color: #1db954;
    font-size: 1.2rem;
    font-weight: 600;
}

.terminal-controls {
    display: flex;
    gap: 10px;
}

.terminal-btn {
    background: rgba(29, 185, 84, 0.2);
    border: 1px solid #1db954;
    color: #1db954;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.terminal-btn:hover {
    background: #1db954;
    color: white;
}

.terminal-editor {
    width: 100%;
    height: calc(100% - 60px);
    background: #0a0a0a;
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 5px;
    padding: 15px;
    color: #1db954;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: none;
    outline: none;
}

.terminal-editor:focus {
    border-color: #1db954;
}