/**
 * MuDream Template - WebEngine Integration Styles
 * Adapted for WebEngine CMS
 * Integration: WebEngine specific components, modules, forms
 */

/* ======== WEBENGINE MODULE INTEGRATION ======== */

/* Page Titles */
.page-title {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1) 0%, rgba(255, 206, 102, 0.1) 100%);
    border-left: 4px solid var(--secondary-color);
    padding: 20px 25px;
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
}

.page-title span,
.page-title h1, .page-title h2, .page-title h3 {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* WebEngine Tables */
.table, .general-table-ui, .myaccount-table {
    width: 100%;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 20px;
}

.table tr, .general-table-ui tr, .myaccount-table tr {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.table tr:hover, .general-table-ui tr:hover, .myaccount-table tr:hover {
    background: rgba(79, 195, 247, 0.1);
    transform: translateX(3px);
}

.table td, .table th,
.general-table-ui td, .general-table-ui th,
.myaccount-table td, .myaccount-table th {
    color: #ffffff !important;
    padding: 12px 15px;
    border: none;
    vertical-align: middle;
}

.table th, .general-table-ui th, .myaccount-table th {
    background: rgba(79, 195, 247, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: var(--secondary-color) !important;
}

.table td:first-child, .general-table-ui td:first-child, .myaccount-table td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: 500;
    color: #b0b0b0 !important;
}

.table td:last-child, .general-table-ui td:last-child, .myaccount-table td:last-child {
    border-radius: 0 8px 8px 0;
}

.table-condensed {
    font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* WebEngine Forms */
.form-control, input[type="text"], input[type="email"], input[type="password"], 
select, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus, input[type="text"]:focus, input[type="email"]:focus, 
input[type="password"]:focus, select:focus, textarea:focus {
    background: rgba(79, 195, 247, 0.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
    outline: none;
    color: #ffffff;
}

.form-control::placeholder, input::placeholder, textarea::placeholder {
    color: #b0b0b0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* WebEngine Messages */
.alert, .rmsg {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.alert::before, .rmsg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success, .rmsg.success {
    background: rgba(92, 184, 92, 0.15);
    color: #ffffff;
    border-left: 4px solid var(--success-color);
}

.alert-danger, .rmsg.error {
    background: rgba(217, 83, 79, 0.15);
    color: #ffffff;
    border-left: 4px solid var(--danger-color);
}

.alert-warning, .rmsg.warn {
    background: rgba(240, 173, 78, 0.15);
    color: #ffffff;
    border-left: 4px solid var(--warning-color);
}

.alert-info, .rmsg.info {
    background: rgba(91, 192, 222, 0.15);
    color: #ffffff;
    border-left: 4px solid var(--info-color);
}

/* WebEngine Labels */
.label {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-success {
    background-color: var(--success-color);
    color: #ffffff;
}

.label-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.label-warning {
    background-color: var(--warning-color);
    color: #000000;
}

.label-info {
    background-color: var(--info-color);
    color: #ffffff;
}

.label-default {
    background-color: #777777;
    color: #ffffff;
}

/* WebEngine Panels */
.panel, .well {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel-heading {
    background: rgba(79, 195, 247, 0.1);
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
}

.panel-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.panel-body {
    color: #ffffff;
}

/* WebEngine Breadcrumbs */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.breadcrumb > li {
    color: #b0b0b0;
    font-size: 0.85rem;
}

.breadcrumb > li + li:before {
    color: #666666;
    content: "/ ";
    padding: 0 5px;
}

.breadcrumb > .active {
    color: #ffffff;
    font-weight: 600;
}

/* WebEngine Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: var(--secondary-color);
    color: #ffffff;
}

.pagination li.active span {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 600;
}

/* WebEngine Character Profiles */
.character-profile-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 30, 0.9) 100%);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 195, 247, 0.6);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.2);
}

.character-profile-card .character-name {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.character-profile-card .character-level {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 206, 102, 0.6);
}

.character-profile-card .character-class {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 5px;
}

.character-profile-card .character-guild {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* WebEngine Rankings */
.ranking-table {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ranking-table thead {
    background: linear-gradient(135deg, var(--secondary-color), #29b6f6);
}

.ranking-table thead th {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border: none;
}

.ranking-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table tbody tr:last-child {
    border-bottom: none;
}

.ranking-table .rank-position {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.ranking-table .rank-position.first {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ranking-table .rank-position.second {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

.ranking-table .rank-position.third {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
}

/* WebEngine News Module */
.news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(79, 195, 247, 0.05);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.news-item .news-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
}

.news-item .news-title:hover {
    color: #ffffff;
}

.news-item .news-date {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.news-item .news-content {
    color: #ffffff;
    line-height: 1.6;
}

.news-item .news-read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.news-item .news-read-more:hover {
    color: #ffffff;
}

/* WebEngine UserCP Specific */
.usercp-navigation {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.usercp-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.usercp-navigation li a {
    display: block;
    padding: 10px 15px;
    background: rgba(79, 195, 247, 0.1);
    border: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.usercp-navigation li a:hover,
.usercp-navigation li a.active {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
}

/* WebEngine Modal/Popup Integration */
.modal-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 30, 0.95) 100%);
    border: 2px solid rgba(79, 195, 247, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(20px);
}

.modal-header {
    background: rgba(79, 195, 247, 0.1);
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: var(--secondary-color);
    font-weight: 600;
}

.modal-body {
    color: #ffffff;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    color: #ffffff;
    opacity: 0.7;
}

.close:hover {
    color: var(--danger-color);
    opacity: 1;
}

/* ======== RESPONSIVE WEBENGINE INTEGRATION ======== */
@media (max-width: 768px) {
    .page-title {
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    .table, .general-table-ui, .myaccount-table {
        font-size: 0.85rem;
    }
    
    .table td, .table th,
    .general-table-ui td, .general-table-ui th,
    .myaccount-table td, .myaccount-table th {
        padding: 8px 10px;
    }
    
    .panel, .well {
        padding: 15px;
    }
    
    .usercp-navigation ul {
        flex-direction: column;
    }
    
    .usercp-navigation li a {
        text-align: center;
    }
    
    .character-profile-card {
        padding: 15px;
    }
}