/*
 *  custom.css
 *
 * This file contains css values and hints for style elements that are frequently customised.
 * Note that this CSS file is loaded last so values defined here will override all others
 * including responsive.css
 */

/* Changing the header image
 * With this version of we_universal it is not possible to change the header image using CSS
 * It is recommended that the header image is changed by renaming your file to dashboard.jpg in
 * the styles/we_universal/theme/images/ directory.
 * Alternatively the link may be changed in styles/we_universal/template/overall_header.html
 * around line 211.


/* link decoration
 * Uncomment the following lines to have all links underlined
 * and visited links re-coloured
 */
/*
a:link,a:visited {
	text-decoration: underline;
	color: #3f3f3f; }

a:focus,
a:hover, a:active {
	text-decoration: underline; }
*/

/*
 * remove header background colour (no border around the image)
 */

.inventea-header {
    background: #ffffff;
    /*background-clip: border-box;*/
}

/*
 * set header background colour (appears as a border around the image, comment out this code for a white border)
 */

/*** begin header colour ***/
/*
.inventea-header {
	background: #a4a4a4;
}
*/
/*** end header colour ***/


/*
.inventea-sitename, .inventea-sitename h1{
	color: #b71c1c;
}
*/

/* Set the maximum forum width on wide screens
 * To set a maximum width that the forum will not grow beyond, uncomment the following lines
 * and set a value (1200px or 1899px are typical values)
 */
.inventea-wrapper,
.inventea-header,
.inventea-footer {
    max-width: 1800px;
    width: 1100px;
}


/* Allow post text to fill the available width on wide screens */
/*
.section-viewtopic .postbody .content {
	max-width: none;
}
*/

/* MIDDLE LAYER: Banner / Header Image */
.inventea-header {
    position: relative !important;
    z-index: 10 !important;
}

/* BOTTOM LAYER: Main Content */
.inventea-content {
    position: relative !important;
    z-index: 1 !important;
}

/*
 * Hide some non-essential menu items if desired
 */
/*
#menu_faq, #button_faq{
	display: none;
}
*/

/*
#menu_team, #button_team{
	display: none;
}
*/

/*
#menu_memberlist, #button_memberlist{
	display: none;
}*/


/*#topic_watch_button, #forum_watch_button,*/
#topic_bookmark_button,
#topic_bump_button {
    display: none;
}

/*
 * Button hide threshold
 * The max-width here adjusts the screen widths for which the header buttons are replaced by a dropdown menu
 * set this value higher if the screen buttons start to wrap, or the text becomes ugly in your language.
 * The valid range of this value is 319px to 699px.
 * I prefer a value of 319px, but if you have added buttons, or use a language with long button labels,
 * a higher value may work better for you.
 */
@media only screen and (max-width:359px) {
    .inventea-menu li>a {
        display: none;
    }

    .inventea-mobile-dropdown-menu {
        display: block;
    }
}

/*
 * To move the header buttons so that they sit outside the header image,
 * (as was the default for a few version of this style),
 * comment out the following blocks of code:
 */
/*** begin buttons inside ***/
.inventea-posts-menu {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 3;
}

.inventea-forum-menu {
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 3;
}

@media only screen and (max-width: 459px) {
    .inventea-dashboard img {
        padding-top: 22px;
        padding-bottom: 22px;
    }
}

/*** end buttons inside ***/
/* menu item refresh */
.inventea-menu li>a {
    border-radius: 6px;
    background: rgba(32, 32, 32, 0.6);
    color: #f2f2f2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.inventea-menu li>a:hover,
.inventea-menu li>a:active {
    background: #bc2a4d;
    color: #ffffff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 3px 6px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

.inventea-menu li>a:focus {
    outline: none;
    background: #bc2a4d;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(188, 42, 77, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18);
}

.inventea-headerbar .inventea-wrapper.inventea-userbar {
    background: rgba(32, 32, 32, 0.6);
    color: #f2f2f2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.12);
}

.inventea-headerbar .inventea-userbar a {
    color: #d32f2f;
    transition: color .15s ease;
}

.inventea-headerbar .inventea-userbar a:hover,
.inventea-headerbar .inventea-userbar a:focus {
    color: #d32f2f;
}

.inventea-headerbar .inventea-user-menu>li>a>strong {
    border-radius: 6px;
}

/* ===== LSPD Modern UI Enhancements ===== */

/* Modern font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base typography improvements */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smoother global transitions */
a,
button,
.button,
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Modern wrapper styling */
.inventea-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

/* Category headers - subtle gradient */
ul.topiclist li.header dt,
ul.topiclist li.header dd,
table.table1 thead th {
    background: linear-gradient(135deg, #2b0a0a 0%, #4a0e0e 100%) !important;
    border-radius: 8px 8px 0 0;
}

/* Forum/topic list items - softer hover */
li.row:hover {
    background: rgba(211, 47, 47, 0.04) !important;
    transition: background 0.2s ease;
}

/* Posts - modern card style */
.post {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.post:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Panels - cleaner look */
.panel {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Buttons - refined style */
.button,
.buttons div a {
    border-radius: 8px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.button:hover,
.buttons div a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* Pagination - modern pills */
.pagination li a,
.pagination li span {
    border-radius: 6px !important;
    font-weight: 500;
}

/* Input fields - cleaner */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
    outline: none;
}

/* Quote blocks - subtle styling */
blockquote {
    border-left: 3px solid #d32f2f;
    border-radius: 0 8px 8px 0;
    background: rgba(211, 47, 47, 0.03);
}

/* Online indicator - pulse animation */
.inventea-online {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Menu hover - blue accent */
.inventea-menu li>a:hover,
.inventea-menu li>a:active {
    background: #d32f2f !important;
}

.inventea-menu li>a:focus {
    background: #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.35), 0 3px 6px rgba(0, 0, 0, 0.18) !important;
}

/* ===== FINAL MODERN POLISH ===== */

/* Dropdown styling */
.dropdown-contents {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 8px !important;
    margin-top: 10px !important;
}

.dropdown-contents li {
    padding: 0 !important;
    border-bottom: none !important;
}

.dropdown-contents a {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    color: #4a5568 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.dropdown-contents a:hover {
    background: #f0f7ff !important;
    color: #d32f2f !important;
    transform: translateX(4px);
}

/* Force dropdowns to the very top */
.header-profile .dropdown,
.dropdown-contents,
#notification_list {
    z-index: 9999 !important;
}

/* Search Box refinement */
.search-box .inputbox {
    border-radius: 20px !important;
    padding: 6px 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
}

.search-box .inputbox:focus {
    width: 200px !important;
    /* Expand on focus */
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
}

/* Dashboard Image - Blue Tint */
.inventea-dashboard-image {
    transition: filter 0.5s ease;
}

.inventea-dashboard:hover .inventea-dashboard-image {
    filter: grayscale(0%) opacity(1);
}

/* Mobile Responsive Cards */
@media (max-width: 700px) {
    ul.topiclist li.row {
        background: #fff !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding: 12px !important;
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    ul.topiclist dt {
        font-size: 15px !important;
    }

    .inventea-headerbar {
        background: #2b0a0a !important;
        /* Fallback for no-backdrop-support */
    }
}

/* Footer modern branding */
.inventea-footer a {
    font-weight: 600;
    opacity: 0.8;
}

.inventea-credits {
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ===== ADVANCED MODERN ENHANCEMENTS ===== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* --- ATTEMPT 3: AGGRESSIVE LAYERING --- */

/* TOP LAYER: Header Bar & User Menu */
.inventea-headerbar {
    background: rgba(40, 10, 10, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative !important;
    z-index: 100 !important;
}

/* Userbar improved styling */
.inventea-userbar {
    background: transparent !important;
    padding: 12px 20px !important;
    position: relative !important;
    z-index: 100 !important;
}

.inventea-userbar a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

.inventea-userbar a:hover {
    color: #d32f2f !important;
}

/* Dashboard image container */
.inventea-dashboard {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Forum list - modern card style */
.forabg,
.forumbg {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: none !important;
}

/* Topic list rows - better spacing */
ul.topiclist li.row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-top: none !important;
    padding: 4px 0;
}

ul.topiclist li.row:last-child {
    border-bottom: none !important;
}

/* Forum icons - subtle glow on hover */
ul.topiclist dt {
    transition: transform 0.2s ease;
}

ul.topiclist li.row:hover dt {
    transform: scale(1.05);
}

/* Topic titles - better typography */
a.topictitle {
    font-weight: 600;
    letter-spacing: -0.01em;
}

a.topictitle:hover {
    color: #d32f2f !important;
}

/* Avatar frames - modern circle */
.postprofile .avatar img,
.avatar-container img {
    border-radius: 50% !important;
    border: 3px solid rgba(211, 47, 47, 0.2);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.postprofile:hover .avatar img,
.avatar-container:hover img {
    border-color: #d32f2f;
    transform: scale(1.02);
}

/* Post profile section - refined */
.postprofile {
    background: linear-gradient(180deg, rgba(211, 47, 47, 0.03) 0%, transparent 100%) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

/* Post content - better readability */
.postbody .content {
    line-height: 1.7 !important;
    font-size: 14px !important;
}

/* Code blocks - dark theme */
dl.codebox {
    background: #1a1a2e !important;
    border-radius: 10px !important;
    border: none !important;
    overflow: hidden;
}

dl.codebox dt {
    background: rgba(211, 47, 47, 0.1) !important;
    color: #d32f2f !important;
    padding: 10px 14px !important;
    font-weight: 600;
}

dl.codebox code {
    color: #e0e0e0 !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* Breadcrumbs - cleaner */
.breadcrumbs {
    font-size: 13px;
    opacity: 0.85;
}

.breadcrumbs a:hover {
    color: #d32f2f !important;
}

/* Footer - subtle styling */
.inventea-footer {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.inventea-footer:hover {
    opacity: 1;
}

/* Notification badges - modern */
.inventea-user-menu>li>a>strong {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%) !important;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
    }

    50% {
        box-shadow: 0 2px 16px rgba(211, 47, 47, 0.6);
    }
}

/* Quick reply - modern style */
#qr_postform {
    background: #f8fafc !important;
    border-radius: 12px;
    padding: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Action bar - cleaner */
.action-bar {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 12px;
}

/* Topic icons - subtle animation */
.topic_unread,
.forum_unread {
    animation: unread-glow 2s ease-in-out infinite;
}

@keyframes unread-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.1);
    }
}

/* Selection color */
::selection {
    background: rgba(211, 47, 47, 0.3);
    color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(211, 47, 47, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(211, 47, 47, 0.5);
}

/* --- KESİN ÇÖZÜM BAŞLANGICI --- */

/* 1. Üstteki kırmızı alanın ve kapsayıcıların menüyü kesmesini engelle */
.inventea-headerbar,
.inventea-userbar {
    overflow: visible !important;
    z-index: 500 !important;
}

/* 2. Bildirim kutusunu en öne al ve serbest bırak */
.dropdown .dropdown-contents,
.dropdown-extended .dropdown-contents {
    display: block;
    /* Görünürlüğü zorla */
    position: absolute !important;
    /* Sayfa akışından bağımsız yüzdür */
    z-index: 9999 !important;
    /* Her şeyin en üstüne çıkar */
    overflow: visible !important;
    /* İçerik kesilmesin - KULLANICININ BELİRTTİĞİ DÜZELTME */
    overflow-y: auto !important;
    /* Kaydırma çubuğu gerekirse çıksın */
    top: 100% !important;
    /* Menünün tam altına yapıştır */
    opacity: 1 !important;
    /* Saydamlık sorununu önle */
    max-height: 400px;
    /* Çok uzun olursa taşmasın, scroll çıksın */
    color: #000000 !important;
    /* Yazıları siyah yap (Konteyner) */
}

/* Tüm alt elemanların rengini zorla (Kesin Çözüm) */
.dropdown .dropdown-contents *,
.dropdown-extended .dropdown-contents * {
    color: #000000 !important;
}
/* --- LSFD MODERN BBCODE TABLES --- */

.lsfd-table-wrapper {
    margin: 15px 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table.lsfd-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    background: #ffffff;
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    margin: 0 !important;
}

table.lsfd-table th {
    background: linear-gradient(135deg, #2b0a0a 0%, #4a0e0e 100%) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

table.lsfd-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    color: #333 !important;
    vertical-align: middle !important;
}

table.lsfd-table tr:last-child td {
    border-bottom: none !important;
}

table.lsfd-table tr:nth-child(even) {
    background-color: rgba(211, 47, 47, 0.02) !important;
}

table.lsfd-table tr:hover {
    background-color: rgba(211, 47, 47, 0.05) !important;
    transition: background-color 0.2s ease;
}

/* Specific styling for nested content in tables */
table.lsfd-table td span, 
table.lsfd-table td div {
    display: inline-block;
}
