/* ============================================================
   THE LEGACY OF MY LIFE - FINAL CLEAN BUILD
   Branding: #1a73e8 | Shape: 1:1 Square | Menu: No Hover
   ============================================================ */

/* TOP BAR BRANDING */
.t3-topbar {
    background-color: #1e3a8a !important;
    border-bottom: none !important;
}

/* Ensure all text and links are white for contrast */
.t3-topbar a,
.t3-topbar .login-greeting,
.t3-topbar .logout-button,
.t3-topbar p,
.t3-topbar strong,
.t3-topbar span,
.t3-topbar div {
    color: #ffffff !important;
}

/* Ensure hover states are also visible */
.t3-topbar a:hover {
    color: #e2e8f0 !important;
    /* Slightly lighter white/grey on hover */
    text-decoration: none !important;
}

/* =========================================
   JOOMRECIPE BLUE BRANDING
   ========================================= */

/* 1. Recipe Titles & Links */
.jr-recipe-title a,
.jr-module-title a,
h5.jb-title-cat a,
.jb-title-cat {
    color: #1a73e8 !important;
}

/* 2. Recipe Categories (Badges) */
.joomrecipe-category,
.jr-category-link {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
}

/* 3. Step Numbers */
.recipe-step-number,
.jr-step-number {
    background-color: #1a73e8 !important;
    color: #ffffff !important;
    border: 2px solid #1a73e8 !important;
}

/* 4. Icons & Highlights */
.jr-icon,
.fa-cutlery,
.fa-clock-o,
.jr-rating-star.active {
    color: #1a73e8 !important;
}

/* 5. Buttons in Recipes */
.jr-button,
.btn-recipe {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
}

/* 6. Success Messages/Alerts in Recipes */
.alert-success,
.jr-alert-success {
    background-color: #e8f0fe !important;
    /* Light blue background */
    border-color: #1a73e8 !important;
    color: #1a73e8 !important;
}

/* 7. Image Styling (Rounded Corners) */
.jr-image-default img,
.comjoomrecipe-cat-browse img,
.jr-module-item img,
.com_joomrecipe .card-img-top,
.jr-recipe-list-item img {
    border-radius: 12px !important;
    object-fit: cover !important;
}

.com_joomrecipe .card {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* 8. UI Refinements - Hide Buttons */
.com_joomrecipe .btn .fa-eye,
.com_joomrecipe .btn .fa-comments,
.com_joomrecipe a[title="View Details"],
.com_joomrecipe a[title="Review Recipe"],
.jr-recipe-list .btn-group {
    display: none !important;
}

/* Match Account Photos Style (Tight Square Grid) */
.joms-module__body .joms-list--thumbnail li,
.jr-recipe-list .jr-recipe-list-item,
.jr-module-item {
    aspect-ratio: 1 / 1 !important;
    padding: 2px !important;
    margin: 0 !important;
}

.joms-module__body .joms-list--thumbnail li img,
.jr-recipe-list .jr-recipe-list-item img,
.jr-module-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}


/* =========================================
   PHOTOS & VIDEOS MODULES (Unified Square Grid)
   ========================================= */

/* 1. Base Grid Layout (4 Columns) */
.joms-module__body .joms-list--thumbnail,
.joms-module__body .joms-list--current-videos {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Unified Item Sizing (Square 1:1) */
.joms-module__body .joms-list--thumbnail li,
.joms-module__body .joms-list--current-videos .joms-list__item {
    width: calc(25% - 7.5px) !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 calc(25% - 7.5px) !important;
    box-sizing: border-box !important;
}

/* 3. Image Styling (Cover Fit & Rounded Corners) */
.joms-module__body .joms-list--thumbnail li img,
.joms-module__body .joms-list--current-videos .joms-list__item img,
.joms-module__body .joms-list--current-videos .joms-list__item a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
    min-height: auto !important;
}

/* 4. Remove Old Video Overlays/Margins */
.joms-list--current-videos .joms-list__item {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 5. Blue Branding for Video Links/Titles */
.joms-list--current-videos .joms-list__item a {
    color: #1a73e8 !important;
}

/* 6. Hover Effect (Blue Border) */
.joms-module__body .joms-list--thumbnail li:hover img,
.joms-module__body .joms-list--current-videos .joms-list__item:hover img {
    border: 2px solid #1a73e8 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* FIX TIMELINE VIDEOS (Verified 4-Column Grid) */
.joms-js--video-module .joms-list--half {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.joms-js--video-module .joms-list--half .joms-list__item {
    width: 25% !important;
    flex: 0 0 25% !important;
    aspect-ratio: 1 / 1 !important;
    padding: 2px !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

.joms-js--video-module .joms-list--half .joms-list__item img,
.joms-js--video-module .joms-list--half .joms-list__item a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}

/* Add Blue Hover Border for Timeline Videos */
.joms-js--video-module .joms-list--half .joms-list__item:hover img {
    border: 2px solid #1a73e8 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Fix Video Links Text Color */
.joms-js--video-module .joms-list--half .joms-list__item a {
    color: #1a73e8 !important;
}


/* =========================================
   BRANDING & BUTTONS (Solid Blue)
   ========================================= */
.btn-primary,
.joms-button--primary,
.joms-label,
.joms-badge,
.btn-success,
.joms-button--add,
.joms-button--save,
.joms-event__date-month,
.joms-focus__header--event,
.joomrecipe-category,
.recipe-step-number {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
    background-image: none !important;
}

.acm-features.style-1 {
    background-image: linear-gradient(135deg, #0d47a1 0%, #64b5f6 100%) !important;
}


/* =========================================
   MENU & HEADER BRANDING
   ========================================= */
header.t3-header,
.t3-header {
    background-image: linear-gradient(135deg, #0d47a1 0%, #64b5f6 100%) !important;
    background-color: #0d47a1 !important;
}

.t3-mainnav .navbar-nav>li.active>a,
.t3-mainnav .navbar-nav>li.active>span {
    color: #ffffff !important;
    font-weight: bold;
}

.t3-mainnav .navbar-nav>li>a:hover,
.t3-mainnav .navbar-nav>li>span:hover {
    color: #ffffff !important;
    opacity: 1;
}

.t3-mainnav .navbar-nav>li>a,
.t3-mainnav .navbar-nav>li>span {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ========================================= JOMSOCIAL PROFILE FIXES ========================================= */
/* Update JomSocial Recipes Tab Name (Verified) */
a[href*="joms-app--7"] {
    font-size: 0 !important;
}

a[href*="joms-app--7"]::before {
    content: "My Favourite Recipes" !important;
    font-size: 14px !important;
    font-weight: normal !important;
    visibility: visible !important;
}

/* Hide JomSocial Info/About Button for Recipes */
.joms-button--link[onclick*="joomrecipe_favourites"][title="About"] {
    display: none !important;
}


/* GREEN ACCENT CLEANUP - Deployed Feb 10, 2026 */

/* 1. Recipe Title Links */
.recipe-title a,
a[href*="/recipe/"] {
    color: #1a73e8 !important;
}

.recipe-title a:hover,
a[href*="/recipe/"]:hover {
    color: #0d47a1 !important;
    text-decoration: underline;
}

/* 2. Filter Icons */
.btn-outline-success,
button.btn-outline-success {
    color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    background-color: transparent !important;
}

.btn-outline-success:hover {
    background-color: #1a73e8 !important;
    color: #ffffff !important;
}

.btn-outline-success i,
#filter_search_btn i {
    color: #1a73e8 !important;
}

/* 3. Star Ratings */
.joomstars,
.joomstar.joomactivestar,
.rating-star,
.yr-star,
.fa-star {
    color: #1a73e8 !important;
}

.joomstar.joominactivestar {
    color: #cccccc !important;
}

/* 4. Online Status */
.joms-online--dot,
.online-status,
.status-online,
.joms-avatar .online {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
}

/* 5. Logout Button */
div.logout-button,
input.button.btn,
.logout-button input {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
}

div.logout-button:hover,
input.button.btn:hover {
    background-color: #0d47a1 !important;
}

/* 6. Success Buttons */
span.btn-success,
.btn-success {
    background-color: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #0d47a1 !important;
}

/* 7. Search Focus */
input[type="text"]:focus,
input[type="search"]:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25) !important;
}

/* 8. Generic Green Overrides */
.text-success {
    color: #1a73e8 !important;
}

.bg-success {
    background-color: #1a73e8 !important;
}

.border-success {
    border-color: #1a73e8 !important;
}

/* 9. Alert Success */
.alert-success {
    background-color: #e3f2fd !important;
    border-color: #1a73e8 !important;
    color: #0d47a1 !important;
}
