/* Server Status Widget Styles - Following AuzWoW Theme Structure */

/* Server Status Widget Container */
.server-status-widget {
    width: 100%;
    height: auto;
    display: block;
    font-family: 'PTSansCaption', Arial, sans-serif;
    color: #b4b4b4;
    text-shadow: 0 1px 0 #080808;
}

/* Server Status Header */
.server-status-header {
    width: 100%;
    height: 62px;
    display: block;
    padding: 0 20px;
    background-size: cover;
    background-color: transparent;
    background-image: url(https://felskorn.com/application/themes/auzwow/images/misc/news_header.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
}

.server-status-header:before {
    width: 100%;
    height: 1px;
    top: 0;
    left: 0;
    content: "";
    position: absolute;
    background: -moz-linear-gradient(left, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%);
    background: -webkit-linear-gradient(left, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.1) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0.1) 0%,rgba(255,255,255,0.1) 100%);
}

.server-status-header-left {
    width: 60%;
    height: auto;
    float: left;
    line-height: 62px;
}

.server-status-header-left i {
    color: #ffc107;
    font-size: 18px;
    margin: 0 7px 0 0;
    vertical-align: text-top;
}

.server-status-title {
    color: #ffffff;
    font-size: 14px;
    font-family: 'PTSansCaption';
    text-transform: uppercase;
    margin: 0;
    font-weight: normal;
    display: inline-block;
    line-height: 62px;
}

.server-status-title i {
    color: #f6cb12;
    font-style: inherit;
    font-family: 'PTSansCaptionBold';
    vertical-align: baseline;
}

.server-status-indicator {
    width: 40%;
    height: auto;
    float: right;
    line-height: 62px;
    text-align: right;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: middle;
    position: relative;
}

.status-dot.online {
    background-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
    50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.8); }
    100% { box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
}

.status-text {
    color: #28a745;
    font-size: 11px;
    font-family: 'PTSansCaption';
    text-transform: uppercase;
    vertical-align: middle;
}

/* Server Status Content */
.server-status-content {
    width: 100%;
    height: auto;
    padding: 23px 27px 27px 27px;
    border-top: 4px #181818 solid;
    border-bottom: 4px #242424 solid;
    background-color: #1a1a1a;
    display: block;
}

.status-info-grid {
    width: 100%;
    height: auto;
    display: block;
}

.status-info-item {
    width: 48%;
    height: auto;
    float: left;
    margin: 0 0 15px 0;
    display: block;
}

.status-info-item:nth-child(even) {
    float: right;
}

.status-info-item.full-width {
    width: 100%;
    float: none;
    clear: both;
}

.status-info-label {
    color: #888888;
    font-size: 11px;
    text-transform: uppercase;
    font-family: 'PTSansCaption';
    display: block;
    margin: 0 0 5px 0;
}

.status-info-value {
    color: #ffc107;
    font-size: 16px;
    font-family: 'PTSansCaptionBold';
    font-weight: normal;
    display: block;
}

/* Uptime Bar */
.uptime-container {
    width: 100%;
    height: auto;
    display: block;
}

.uptime-bar {
    width: 80%;
    height: 20px;
    float: left;
    margin: 5px 10px 0 0;
    border: 1px #333333 solid;
    padding: 2px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 0 6px 0 #050505, 0 3px 0 #090909;
    background: -moz-linear-gradient(top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 50%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%,rgba(0,0,0,0) 50%);
}

.uptime-fill {
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 0 0 #0a0a0a;
    background-color: #28a745;
    background-image: url(https://felskorn.com/application/themes/auzwow/images/misc/pattern-dots.png);
    background-repeat: repeat;
    background-position: top left;
    transition: width 0.3s ease;
}

.uptime-fill:before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
    position: absolute;
    box-sizing: border-box;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2);
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.1) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.1) 100%);
}

.uptime-text {
    color: #28a745;
    font-size: 12px;
    font-family: 'PTSansCaptionBold';
    font-weight: normal;
    float: right;
    line-height: 20px;
    margin: 5px 0 0 0;
}

/* Clear floats */
.server-status-content:after {
    height: 0;
    clear: both;
    content: '';
    display: block;
    font-size: 0;
    visibility: hidden;
}

.status-info-grid:after {
    height: 0;
    clear: both;
    content: '';
    display: block;
    font-size: 0;
    visibility: hidden;
}

.uptime-container:after {
    height: 0;
    clear: both;
    content: '';
    display: block;
    font-size: 0;
    visibility: hidden;
}

/* Animation for status updates */
.status-info-value {
    transition: color 0.3s ease;
}

.status-info-value.updating {
    color: #ffc107;
    animation: glow 0.5s ease-in-out;
}

@keyframes glow {
    0% { text-shadow: 0 1px 0 #080808; }
    50% { text-shadow: 0 1px 0 #080808, 0 0 15px #ffc107; }
    100% { text-shadow: 0 1px 0 #080808; }
}