/*
 * ReallySecure Bank - Custom Styles
 * "No really, we're secure!"
 */

/* ========================================
   CSS Variables / Theme
   ======================================== */
:root {
    --rsb-primary: #1a365d;
    --rsb-primary-light: #2c5282;
    --rsb-primary-dark: #0f2942;
    --rsb-gold: #d69e2e;
    --rsb-gold-light: #ecc94b;
    --rsb-gold-dark: #b7791f;
    --rsb-success: #38a169;
    --rsb-danger: #e53e3e;
    --rsb-warning: #dd6b20;
}

/* ========================================
   Global Styles
   ======================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

main {
    flex: 1;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
}

.text-gold {
    color: var(--rsb-gold) !important;
}

.bg-gold {
    background-color: var(--rsb-gold) !important;
}

/* ========================================
   Security Banner
   ======================================== */
.security-banner {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    text-align: center;
}

.security-banner.vulnerable {
    background: linear-gradient(90deg, #742a2a 0%, #9b2c2c 50%, #742a2a 100%);
    color: #fed7d7;
}

.security-banner.secure {
    background: linear-gradient(90deg, #22543d 0%, #276749 50%, #22543d 100%);
    color: #c6f6d5;
}

.security-banner code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: linear-gradient(135deg, var(--rsb-primary) 0%, var(--rsb-primary-light) 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    display: block;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    opacity: 0.8;
    font-style: italic;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--rsb-primary) 0%, var(--rsb-primary-light) 50%, var(--rsb-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-illustration {
    position: relative;
    padding: 2rem;
}

.hero-illustration .bi-shield-lock {
    font-size: 8rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.icon-float {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn-gold {
    background: linear-gradient(135deg, var(--rsb-gold) 0%, var(--rsb-gold-light) 100%);
    border: none;
    color: var(--rsb-primary-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--rsb-gold-light) 0%, var(--rsb-gold) 100%);
    color: var(--rsb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 158, 46, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--rsb-primary) 0%, var(--rsb-primary-light) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--rsb-primary-light) 0%, var(--rsb-primary) 100%);
    transform: translateY(-1px);
}

/* ========================================
   Cards
   ======================================== */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* ========================================
   Forms
   ======================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--rsb-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
}

/* ========================================
   Tables
   ======================================== */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom-width: 1px;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

/* ========================================
   Avatar
   ======================================== */
.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rsb-primary) 0%, var(--rsb-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.footer p,
.footer li,
.footer .text-muted {
    color: #a0aec0 !important;
}

.footer a {
    text-decoration: none;
    transition: color 0.2s ease;
    color: #cbd5e0 !important;
}

.footer a:hover {
    color: var(--rsb-gold) !important;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* ========================================
   Badges
   ======================================== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ========================================
   Code
   ======================================== */
code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.bg-dark code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fbd38d;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .brand-tagline {
        display: none !important;
    }
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ========================================
   Utilities
   ======================================== */
.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.border-gold {
    border-color: var(--rsb-gold) !important;
}
