
/* ===================================================
   DIGITAL MEMORY VAULT - GLOBAL STYLES
=================================================== */

body {
    background: #f4f7fc;
    font-family: 'Segoe UI', sans-serif;
    color: #2c3e50;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.navbar {
    background: linear-gradient(90deg, #0d6efd, #4f46e5) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    transition: .3s;
}

.navbar .nav-link:hover {
    opacity: .85;
}

/* ================= HERO ================= */

.hero {
    background: linear-gradient(135deg,#0d6efd,#6610f2);
    color: white;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 12px 35px rgba(13,110,253,.25);
}

/* ================= CARDS ================= */

.card {
    border: none;
    border-radius: 18px;
    transition: .35s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.dashboard-card {
    background: white;
}

/* ================= MEMORY ================= */

.memory-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
}

.memory-image,
.card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: .4s;
}

.memory-card:hover .memory-image,
.memory-card:hover .card-img-top {
    transform: scale(1.05);
}

.memory-placeholder {
    height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg,#edf2ff,#dbeafe);
    color: #4f46e5;
    font-size: 70px;
}

/* ================= MEDIA ================= */

.memory-preview {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    background: black;
    border-radius: 20px;
}

video {
    width: 100%;
    max-height: 700px;
    border-radius: 20px;
}

audio {
    width: 100%;
    margin-top: 20px;
}

iframe {
    width: 100%;
    border: none;
    border-radius: 18px;
}

/* ================= BUTTONS ================= */

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: .25s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* ================= FORMS ================= */

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #dce3ec;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* ================= BADGES ================= */

.badge {
    border-radius: 20px;
    padding: 8px 14px;
    font-size: .8rem;
}

.alert {
    border: none;
    border-radius: 15px;
}

/* ================= FOOTER ================= */

footer {
    background: #1f2937;
    color: white;
    padding: 30px;
    margin-top: 70px;
    text-align: center;
}

/* ================= ANIMATION ================= */

.fade-up {
    animation: fadeUp .5s ease;
}

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

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .hero {
        padding: 30px;
        text-align: center;
    }

    .memory-image,
    .card-img-top,
    .memory-placeholder {
        height: 220px;
    }

    .memory-preview {
        max-height: 450px;
    }

    .d-flex.gap-2 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero {
        padding: 25px;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .card-body {
        padding: 20px !important;
    }

    .memory-image,
    .card-img-top,
    .memory-placeholder {
        height: 180px;
    }

    .memory-placeholder {
        font-size: 55px;
    }

    .memory-preview {
        max-height: 300px;
    }

    video {
        max-height: 300px;
    }

    iframe {
        height: 350px !important;
    }
}

@media (max-width: 576px) {

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }

    .btn-lg,
    .form-control-lg,
    .form-select-lg {
        font-size: 1rem;
    }

    .badge {
        font-size: .75rem;
    }
}
