/********************* USERCP MAIN **************/

/* Container block */
.ucpContainer {
    border: 1px solid var(--border);
    background: var(--mainboard-bg);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

/* Header of container (mimics .thead) */
.ucpContainer__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--mediumgreen);
    font-family: var(--sc-font);
    font-weight: bold;
    color: var(--lighterwhite);
    text-transform: uppercase;
}

/* Content inside */
.ucpContainer__wrapper {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.usercp_container img {
    width: 250px !important;
    height: 350px !important;
    object-fit: cover;
    border: 1px solid var(--border-gray);
	border-radius: 0 !important;
}

/* Make sure avatar containers don't stretch awkwardly */
.usercp_container {
    flex-shrink: 0;
}

/* Responsive for mobile */
@media screen and (max-width: 767px) {
    .ucpContainer__wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/*************** NAVBAR UCP ****************/

.ucp-topnav-wrapper {
	display: flex;
	width: 100%;
	margin-bottom: 1rem;
}

.ucp-topnav {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	gap: 3rem;
	padding: 2rem;
	background: var(--mainboard-bg);
	font-family: var(--body);
}

.ucp-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 180px;
}

.ucp-group-title {
	font-size: 0.85rem;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
	letter-spacing: 0.05em;
}

.ucp-link {
	text-decoration: none;
	padding: 0.25rem 0;
	transition: 0.2s ease;
}

.ucp-link:hover {
	text-shadow: 0px 0px 6px #777;
	text-decoration: none;
}

@media screen and (max-width: 767px) {
	.ucp-topnav {
		flex-direction: column;
		gap: 2rem; /* adjust vertical spacing between sections */
	}

	.ucp-group {
		min-width: 100%;
	}
}

/****************** USERCP LATEST THREADS ***************/

/* Toolbar alignment */
.Toolbar {
    font-size: 13px;
}

.Toolbar a {
    color: var(--accent, #66cc99);
    text-decoration: none;
    font-weight: normal;
}

.Toolbar a:hover {
    text-decoration: underline;
}

/* Latest Threads */
.Threadlist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Container for each thread */
.UserCp__thread {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background: var(--mainboard-bg);
    border: 1px solid var(--border, #333);
    width: 100%;
}

/* First column: forum + thread */
.UserCp__thread__main {
    flex: 1 1 50%;
    font-size: 14px;
    line-height: 1.5;
}

.UserCp__thread__main a {
    font-weight: bold;
}

/* Second column: replies */
.UserCp__thread__replies {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    white-space: nowrap;
}

/* Third column: last post */
.UserCp__thread__lastpost {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
    color: #ccc;
}

/* Replies styling */
.Stat__label {
    color: #999;
    font-weight: bold;
}

.Stat__value {
    color: var(--mediumgreen, #66cc99);
    font-weight: bold;
}

/* Responsive stacking */
@media screen and (max-width: 768px) {
    .UserCp__thread {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .UserCp__thread__main,
    .UserCp__thread__replies,
    .UserCp__thread__lastpost {
        width: 100%;
    }
    .UserCp__thread__lastpost {
        text-align: left;
    }
}


/***************** USERCP NOTEPAD ****************/

/* UserCP Notepad Modern Styles */
#usercp_notepad {
    width: 100%;
    background: #191919;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #333;
}

.notepad-header {
    background: var(--mainboard-bg);
    color: #fff;
    font-family: var(--sc-font);
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #333;
    text-align: left;
}

.notepad-body {
    padding: 10px 0;
}

.usercp_notepad {
    width: 100%;
    min-height: 150px;
    background: rgba(13, 13, 13, 0.8);
    color: #ddd;
    border: 1px solid #555;
    padding: 10px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
}

.notepad-submit {
    text-align: center;
    margin-top: 10px;
}

/** Mobile stretch notepad table fully **/
@media screen and (max-width: 767px) {
    #usercp_notepad table {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    #usercp_notepad table tr,
    #usercp_notepad table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    #usercp_notepad textarea {
        width: 100% !important;
        min-height: 150px;
        box-sizing: border-box;
    }
}

		