/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 
 * Author Lautaro Angelico (https://lautaroangelico.com/)
 * Copyright (c) 2013-2026 Lautaro Angelico, All Rights Reserved
 
 * Licensed under the MIT license
 * https://opensource.org/licenses/MIT
 
 =========================================================
 
*/
/* GUILD PROFILES */
.profiles_guild_card {
	width: 100%;
	background: #000000 url('../img/profiles/guild.jpg') no-repeat;
	background-size: cover;
	overflow: auto;
    border-radius: 10px;
	border: 1px solid #333;
	box-shadow: 0 0 10px #555;
	padding: 40px;
	color: #ffffff;
	text-shadow: 1px 1px 1px #000;
}
	.profiles_guild_card .guild_logo img {
		box-shadow: 0 0 10px #000;
	}
	.profiles_guild_card .guild_name {
		font-family: 'Cinzel', serif;
		font-size: 24px;
		color: #ffffff;
		font-weight: bold;
	}
	.profiles_guild_card table {
		table-layout: fixed;
	}
	.profiles_guild_card hr {
		    border-top: 1px solid #333;
			margin-top: 30px;
			margin-bottom: 30px;
	}
	.profiles_guild_card .guild_members {
		font-family: 'Cinzel', serif;
		font-size: 24px;
		color: #ffffff;
		font-weight: bold;
	}
	.profiles_guild_card .guild_members_list {
		margin-top: 30px;
	}

/* PLAYER PROFILES */
.profiles_player_card {
	width: 100%;
	overflow: auto;
    border-radius: 10px;
	border: 1px solid #333;
	box-shadow: 0 0 10px #555;
	padding: 20px;
}

	.DW.profiles_player_card, .SM.profiles_player_card, .GM.profiles_player_card, .SW.profiles_player_card, .DSW.profiles_player_card { background: url('../img/profiles/wiz.jpg') no-repeat; background-size: cover; }
	.DK.profiles_player_card, .BK.profiles_player_card, .BM.profiles_player_card, .DGK.profiles_player_card, .IGK.profiles_player_card { background: url('../img/profiles/knight.jpg') no-repeat; background-size: cover; }
	.ELF.profiles_player_card, .ME.profiles_player_card, .HE.profiles_player_card, .NE.profiles_player_card, .RYE.profiles_player_card { background: url('../img/profiles/elf.jpg') no-repeat; background-size: cover; }
	.MG.profiles_player_card, .DM.profiles_player_card, .MK.profiles_player_card, .DPK.profiles_player_card { background: url('../img/profiles/mg.jpg') no-repeat; background-size: cover; }
	.DL.profiles_player_card, .LE.profiles_player_card, .EL.profiles_player_card, .FCE.profiles_player_card { background: url('../img/profiles/dl.jpg') no-repeat; background-size: cover; }
	.SUM.profiles_player_card, .BS.profiles_player_card, .DSM.profiles_player_card, .DS.profiles_player_card, .ESUM.profiles_player_card { background: url('../img/profiles/sum.jpg') no-repeat; background-size: cover; }
	.RF.profiles_player_card, .FM.profiles_player_card, .FB.profiles_player_card, .BF.profiles_player_card { background: url('../img/profiles/rf.jpg') no-repeat; background-size: cover; }
	.GL.profiles_player_card, .ML.profiles_player_card, .SL.profiles_player_card, .AL.profiles_player_card { background: url('../img/profiles/gl.jpg') no-repeat; background-size: cover; }
	.RW.profiles_player_card, .RSM.profiles_player_card, .GRM.profiles_player_card, .MRW.profiles_player_card, .IRW.profiles_player_card { background: url('../img/profiles/rw.jpg') no-repeat; background-size: cover; }
	.SLR.profiles_player_card, .SLRR.profiles_player_card, .MSLR.profiles_player_card, .SLTR.profiles_player_card, .RS.profiles_player_card { background: url('../img/profiles/sl.jpg') no-repeat; background-size: cover; }
	.GC.profiles_player_card, .GB.profiles_player_card, .MGB.profiles_player_card, .HGC.profiles_player_card, .MGC.profiles_player_card { background: url('../img/profiles/gc.jpg') no-repeat; background-size: cover; }
	.LIW.profiles_player_card, .LIM.profiles_player_card, .SHW.profiles_player_card, .LUW.profiles_player_card, .GLW.profiles_player_card { background: url('../img/profiles/liw.jpg') no-repeat; background-size: cover; }
	.LEM.profiles_player_card, .WAM.profiles_player_card, .ARM.profiles_player_card, .MYM.profiles_player_card, .BAM.profiles_player_card { background: url('../img/profiles/lem.jpg') no-repeat; background-size: cover; }
	.IK.profiles_player_card, .MIK.profiles_player_card, .IM.profiles_player_card, .MYK.profiles_player_card, .PPK.profiles_player_card { background: url('../img/profiles/ik.jpg') no-repeat; background-size: cover; }
	.ALC.profiles_player_card, .ALMN.profiles_player_card, .ALMTR.profiles_player_card, .ALFC.profiles_player_card, .CRE.profiles_player_card { background: url('../img/profiles/alc.jpg') no-repeat; background-size: cover; }
	.CRU.profiles_player_card, .ICRU.profiles_player_card, .MPAL.profiles_player_card, .SPAL.profiles_player_card, .TCOM.profiles_player_card { background: url('../img/profiles/cru.jpg') no-repeat; background-size: cover; }

.profiles_player_content {
	float: right;
	width: 50%;
	color: #fff;
}

.profiles_player_table {
	width: 100%;
}

.profiles_player_table .cname {
	font-family: 'Cinzel', serif;
	text-align: center;
	font-size: 24px;
	color: #fff;
	font-weight: bold;
}

.profiles_player_table .cclass {
	text-align: center;
	font-size: 11px;
	color: #eee;
}

.profiles_player_table .isoffline {
	color: #ff0000;
}

.profiles_player_table .isonline {
	color: #00ff00;
}

.profiles_player_table_info {
	table-layout: fixed;
	margin-top: 10px;
}
.profiles_player_table_info tr td {
	padding: 3px 10px;
}
.profiles_player_table_info tr td:first-child {
	text-align: right;
}

/* =========================================================
   MUFASTER - GUILD PROFILE PREMIUM
   Visual only. WebEngine guild/profile logic untouched.
   ========================================================= */

/* The outer UserCP panel when a Guild Profile is present */
.info-content-container:has(.profiles_guild_card) {
    background:
        radial-gradient(circle at 92% 8%, rgba(181,22,32,.14), transparent 30%),
        radial-gradient(circle at 5% 92%, rgba(212,175,55,.055), transparent 28%),
        linear-gradient(145deg, #171315 0%, #0b0b0c 100%) !important;
    border: 1px solid rgba(212,175,55,.18) !important;
    box-shadow: 0 25px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

/* Hide the old generic module title only when it is immediately above a Guild Profile.
   The profile itself supplies the visual title. */
.info-content-container:has(.profiles_guild_card) > .content-header {
    color: #d4af37 !important;
    font-size: .72rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    opacity: .78;
}

/* Main Guild card */
.profiles_guild_card {
    position: relative !important;
    isolation: isolate;
    width: 100% !important;
    min-height: 620px;
    padding: 34px 34px 38px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212,175,55,.28) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(7,7,8,.56), rgba(7,7,8,.90)),
        url('../img/profiles/guild.jpg') center center / cover no-repeat !important;
    box-shadow:
        0 28px 70px rgba(0,0,0,.65),
        inset 0 1px 0 rgba(255,255,255,.045),
        inset 0 0 80px rgba(0,0,0,.45) !important;
    color: #eee !important;
    text-shadow: none !important;
}

/* Atmospheric red/gold glow */
.profiles_guild_card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 15%, rgba(212,175,55,.13), transparent 22%),
        radial-gradient(circle at 100% 0%, rgba(181,22,32,.18), transparent 35%),
        linear-gradient(90deg, rgba(0,0,0,.55), transparent 50%, rgba(0,0,0,.48));
    pointer-events: none;
}

.profiles_guild_card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #650910 0%, #e12b35 25%, #d4af37 50%, #e12b35 75%, #650910 100%);
    box-shadow: 0 0 22px rgba(212,175,55,.24);
    pointer-events: none;
}

/* Guild logo */
.profiles_guild_card .guild_logo {
    position: relative;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 4px auto 18px !important;
}

.profiles_guild_card .guild_logo::before {
    content: "";
    position: absolute;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.13), rgba(181,22,32,.05) 52%, transparent 70%);
    box-shadow: 0 0 35px rgba(212,175,55,.08);
}

.profiles_guild_card .guild_logo img {
    position: relative;
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: rgba(4,4,5,.72) !important;
    border: 1px solid rgba(212,175,55,.55) !important;
    box-shadow:
        0 15px 35px rgba(0,0,0,.65),
        0 0 0 5px rgba(0,0,0,.30),
        0 0 28px rgba(212,175,55,.10) !important;
}

/* Guild name */
.profiles_guild_card .guild_name {
    display: block !important;
    text-align: center !important;
    margin: 0 0 22px !important;
    font-family: Metropolis-bold, sans-serif !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    line-height: 1.15 !important;
    letter-spacing: 1px !important;
    color: #f0c94d !important;
    text-shadow: 0 4px 22px rgba(0,0,0,.85) !important;
}

/* Small decorative line below guild identity */
.profiles_guild_card .guild_name::after {
    content: "";
    display: block;
    width: 58px;
    height: 2px;
    margin: 13px auto 0;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    box-shadow: 0 0 12px rgba(212,175,55,.20);
}

/* Stats table */
.profiles_guild_card table {
    width: 100% !important;
    margin: 0 auto !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(212,175,55,.16) !important;
    border-radius: 12px !important;
    background: rgba(3,3,4,.62) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,.28) !important;
}

.profiles_guild_card table tr {
    background: transparent !important;
}

.profiles_guild_card table tr + tr td {
    border-top: 1px solid rgba(255,255,255,.055) !important;
}

.profiles_guild_card table td {
    padding: 14px 18px !important;
    background: transparent !important;
    color: #ddd !important;
    border: 0 !important;
    font-size: .92rem !important;
    vertical-align: middle !important;
}

.profiles_guild_card table td:first-child {
    width: 42% !important;
    text-align: right !important;
    color: #858185 !important;
    font-size: .73rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
}

.profiles_guild_card table td:last-child {
    text-align: left !important;
    color: #f2f2f2 !important;
    font-weight: 800 !important;
}

/* Master / profile links */
.profiles_guild_card a {
    color: #d4af37 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: color .2s ease, text-shadow .2s ease !important;
}

.profiles_guild_card a:hover {
    color: #f0c94d !important;
    text-shadow: 0 0 14px rgba(212,175,55,.38) !important;
}

/* Divider */
.profiles_guild_card hr {
    border: 0 !important;
    border-top: 1px solid rgba(212,175,55,.16) !important;
    margin: 30px 0 25px !important;
    opacity: 1 !important;
}

/* Members heading */
.profiles_guild_card .guild_members {
    position: relative;
    margin: 0 0 20px !important;
    padding-top: 0 !important;
    text-align: center !important;
    font-family: Metropolis-bold, sans-serif !important;
    font-size: 20px !important;
    letter-spacing: 1px !important;
    color: #fff !important;
    text-shadow: 0 3px 16px rgba(0,0,0,.75) !important;
}

.profiles_guild_card .guild_members::before {
    content: "GUILD • COMMUNITY";
    display: block;
    margin-bottom: 7px;
    color: #d4af37;
    font-size: 8px;
    font-family: Metropolis-bold, sans-serif;
    letter-spacing: 3px;
    opacity: .78;
}

/* Member list as premium tiles instead of a plain vertical link list */
.profiles_guild_card .guild_members_list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px !important;
    margin-top: 0 !important;
    padding-top: 2px !important;
}

.profiles_guild_card .guild_members_list br {
    display: none !important;
}

.profiles_guild_card .guild_members_list a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 9px 34px 9px 16px !important;
    border: 1px solid rgba(212,175,55,.15) !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(0,0,0,.28)) !important;
    color: #e4e4e4 !important;
    font-size: .79rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 5px 16px rgba(0,0,0,.16) !important;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease !important;
}

/* Elegant shield emblem — CSS only, no image required. */
.profiles_guild_card .guild_members_list a::before {
    content: "\f132";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    color: #d4af37 !important;
    text-shadow: 0 0 10px rgba(212,175,55,.28);
    opacity: .95;
}

/* Small refined chevron to make the card feel like a clickable profile entry. */
.profiles_guild_card .guild_members_list a::after {
    content: "\f054";
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif !important;
    font-weight: 900 !important;
    font-size: 9px !important;
    color: rgba(212,175,55,.58) !important;
}

/* Keep the real online/offline class functional without using colored dots. */
.profiles_guild_card .guild_members_list a.muf-guild-member-online::before {
    color: #e9c75a !important;
    text-shadow: 0 0 11px rgba(233,199,90,.42) !important;
}

.profiles_guild_card .guild_members_list a.muf-guild-member-offline::before {
    color: #8f8b87 !important;
    text-shadow: none !important;
}

.profiles_guild_card .guild_members_list a:hover {
    background: linear-gradient(145deg, rgba(181,22,32,.16), rgba(212,175,55,.07)) !important;
    border-color: rgba(212,175,55,.42) !important;
    color: #f0c94d !important;
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(0,0,0,.30), 0 0 16px rgba(212,175,55,.07) !important;
}

.profiles_guild_card .guild_members_list a:hover::before {
    color: #f0c94d !important;
    text-shadow: 0 0 14px rgba(240,201,77,.48);
}

/* Mobile */
@media (max-width: 767.98px) {
    .profiles_guild_card {
        min-height: 0 !important;
        padding: 25px 15px 28px !important;
        border-radius: 13px !important;
    }

    .profiles_guild_card .guild_logo img {
        width: 82px !important;
        height: 82px !important;
    }

    .profiles_guild_card .guild_logo::before {
        width: 120px;
        height: 120px;
    }

    .profiles_guild_card .guild_name {
        font-size: 24px !important;
    }

    .profiles_guild_card table td {
        padding: 11px 9px !important;
        font-size: .82rem !important;
    }

    .profiles_guild_card table td:first-child {
        width: 40% !important;
        font-size: .66rem !important;
        letter-spacing: .8px !important;
    }

    .profiles_guild_card .guild_members_list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .profiles_guild_card .guild_members_list a {
        min-height: 40px !important;
        font-size: .72rem !important;
        padding: 8px 6px !important;
    }
}

@media (max-width: 420px) {
    .profiles_guild_card .guild_members_list {
        grid-template-columns: 1fr !important;
    }
}
