/* Custom Styles for The Vault */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-mono {
    font-family: 'Fira Code', monospace;
}

/* Terminal Styles */
.terminal {
    background: #0f172a;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #10b981;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
}

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

.terminal-btn {
    width: 30px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    background-color: #1e293b;
    border: 1px solid #334155;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.terminal-btn:hover {
    background-color: #334155;
}

.terminal-btn.close {
    background-color: #1e293b;
}

.terminal-btn.close:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.terminal-body {
    min-height: 200px;
}

.terminal-line {
    display: block;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.terminal-line::before {
    content: '$ ';
    color: #3b82f6;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: #10b981;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Light mode scrollbar */
.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page transitions */
.page-transition {
    animation: slideIn 0.5s ease-out;
}

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

/* Code block styling */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

/* Light theme overrides */
body:not(.dark) .terminal {
    background: #1e293b;
    color: #10b981;
}

body:not(.dark) .code-block {
    background: #f1f5f9;
    color: #334155;
}

/* Responsive typography */
@media (max-width: 768px) {
    .terminal {
        font-size: 0.75rem;
    }
}
