/* assets/css/style.css */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lora:ital,wght@0,400;1,400&display=swap');

/* --- 1. BOOTSTRAP THEME OVERRIDES --- */
/* This redefines Bootstrap's default colors globally */
:root {
    --bs-primary: #970000;
    --bs-primary-rgb: 151, 0, 0; /* Needed for shadows */
    --bs-link-color: #970000;
    --bs-link-hover-color: #720000;
    
    /* Custom Brand Variables */
    --brand-red: #970000;
    --brand-leather: #2c1a0e;
    --brand-gold: #c5a059;
}

/* --- 2. LAYOUT & BACKGROUNDS --- */
body { 
    background: url('/assets/images/background.jpg') no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #333; 
    font-family: 'Lora', serif; /* Default body font */
}

/* Headers use the Fantasy font */
h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Cinzel', serif;
}

/* Navbar: Dark Brown Leather style */
.navbar {
    background-color: #2c1a0e !important; 
    border-bottom: 3px solid #970000;
}

/* Content Boxes (Parchment look) */
.parchment-box {
    background-color: rgba(255, 255, 255, 0.90);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d3d3d3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cards (Dashboard/Login) */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #d3d3d3;
}

/* --- 3. COMPONENT OVERRIDES --- */

/* Primary Buttons (Solid Red) */
.btn-primary {
    background-color: #970000;
    border-color: #800000;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #7a0000 !important;
    border-color: #5c0000 !important;
}

/* Outline Buttons (Red Text/Border) */
.btn-outline-primary {
    color: #970000;
    border-color: #970000;
}
.btn-outline-primary:hover {
    background-color: #970000;
    border-color: #970000;
    color: white;
}

/* Background Utility */
.bg-primary {
    background-color: #970000 !important;
}

/* Floating Edit Button (Public Sessions) */
.btn-edit-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Header Avatar */
.avatar-small { 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 1px solid #fff;
}

/* --- 4. UTILITIES & ANIMATIONS --- */

.brand-red { color: var(--brand-red) !important; }
.bg-brand-red { background-color: var(--brand-red) !important; }
.text-gold { color: var(--brand-gold) !important; }

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quill Editor Fixes */
.editor-container { 
    background: #fff; 
    border-bottom-left-radius: 4px; 
    border-bottom-right-radius: 4px; 
}
.ql-toolbar { 
    background: #f8f9fa; 
    border-top-left-radius: 4px; 
    border-top-right-radius: 4px; 
}
.ql-container { 
    font-family: 'Lora', serif; 
    font-size: 1rem; 
    height: 150px; 
}

/* Force the Session Modal to be wider on all devices */
#sessionModal .modal-dialog {
    max-width: 1100px; /* Cap it at a nice wide size */
    width: 95%;        /* On smaller screens, take up almost full width */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure the header text doesn't wrap weirdly in the modal */
.modal-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

/* Card Hover Animation */
.card-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}