/* ==========================================================================
   1. BASE & GLOBAL STYLES
   ========================================================================== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px; /* Space for fixed footer */
}

/* Global focus states for accessibility */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Utility: Hide elements */
.d-none {
    display: none !important;
}

/* ==========================================================================
   2. COMMON INTERACTION EFFECTS (Links & Hovers)
   ========================================================================== */

/* Universal Link Hover */
[href]:hover {
    color: blue;
}

/* Marketplace & Video Cards */
.ratio:hover,
.marketplace_product_item:hover {
    transform: scale(1.03);
    transition: transform 0.2s ease-in-out;
}

/* Navbar Items (Fixed: Targeted the anchor tag for color) */
.navbar-nav .nav-item:hover {
    transform: scale(1.05);
    transition: transform 0.1s ease-in-out;
}

    .navbar-nav .nav-item:hover .nav-link {
        color: red !important; /* Forces color change on the text link */
        text-decoration: underline;
        text-decoration-thickness: 3px;
        text-underline-offset: 5px;
    }

/* ==========================================================================
   3. BUTTONS & ANIMATED ELEMENTS
   ========================================================================== */

.btn-animate {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

    .btn-animate:hover {
        color: #e74c3c !important;
        text-decoration: underline;
        transform: translateY(-2px);
        transition: color 0.3s, transform 0.3s, text-decoration 0.3s;
    }

/* ==========================================================================
   MY OPINION
   ========================================================================== */

.card {
    transition: box-shadow 0.3s ease-in-out;
}

    .card:hover {
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        /*cursor: pointer;*/
    }

/* Custom Review Card Styling */
.review-card {
    border: 2px solid #dee2e6; /* Prominent border */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 12px; /* Smoother corners */
}

    /* Hover Effect */
    .review-card:hover {
        border-color: #0d6efd; /* Changes to Bootstrap primary blue */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
        transform: translateY(-2px); /* Slight lift */
    }

    /* Click Animation */
    .review-card:active {
        transform: scale(0.97); /* Shrinks slightly when clicked */
        background-color: #f8f9fa;
    }

/* ==========================================================================
   4. CHAT COMPONENT
   ========================================================================== */

.chat-window {
    max-width: 100%;
    height: 400px;
    border: 4px solid #dee2e6;
    border-radius: 8px;
    background-color: lightgray;
    display: flex;
    flex-direction: column;
}

.chat-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Background styling */
    background-color: rgba(255, 255, 255, 0.8);
    background-image: url('/images/Waifu_01.jpg');
    background-blend-mode: overlay;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

    /* Scrollbar Customization */
    .chat-messages-area::-webkit-scrollbar {
        width: 6px;
    }

    .chat-messages-area::-webkit-scrollbar-thumb {
        background-color: #cccccc;
        border-radius: 10px;
    }

/* ==========================================================================
   5. CHAT BOT ANIMATIONS (Keyframes & Loading States)
   ========================================================================== */

.typing {
    display: flex;
    align-items: center;
    height: 20px;
}

    .typing span {
        height: 8px;
        width: 8px;
        margin: 0 2px;
        background-color: #9E9E9E;
        border-radius: 50%;
        opacity: 0.4;
        animation: typing 1s infinite;
    }

        .typing span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-5px); /* Fixed: removed closing parenthesis error */
        opacity: 1;
    }
}
