/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #a0a0a0;
    padding-top: 50px; /* Fix for navbar-fixed-top */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: #e67e22;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: #d35400;
}

/* Navbar Customization */
.navbar-fixed-top {
    background-color: #1a1a1a;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    border-bottom: 1px solid #333;
}

.navbar-brand img {
    height: 40px;
    margin-top: -10px;
    width: auto;
}

.navbar-nav > li > a {
    color: #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: transparent;
    color: #e67e22;
}

/* Hero Section (Landing Page) */
.hero-section {
    color: #fff;
    padding: 180px 0 150px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #e67e22;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;  
    animation: hero-breathe 20s ease-in-out infinite alternate;
}

.hero-section h1 {
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(230, 126, 34, 0.6);
}

.hero-section .lead {
    font-size: 24px;
    margin-bottom: 40px;
    color: #ddd;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-section .btn {
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    margin: 0 10px;
    transition: all 0.3s;
}

.hero-section .btn-primary {
    background-color: #e67e22;
    color: #fff;
    border: none;
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4);
}

.hero-section .btn-primary:hover {
    background-color: #d35400;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.6);
}

.hero-section .btn-outline {
    background-color: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}

.hero-section .btn-outline:hover {
    background-color: #fff;
    color: #111;
}

/* Cards / Panels */
.panel {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.panel-heading {
    background-color: #252525 !important;
    border-bottom: 1px solid #333;
    color: #fff !important;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
}

.panel-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.panel-body {
    padding: 20px;
    line-height: 1.6;
}

.panel-footer {
    background-color: #252525;
    border-top: 1px solid #333;
    border-radius: 0 0 8px 8px;
}

/* Footer */
.main-footer {
    background-color: #111;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a1a1a' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    color: #888;
    padding: 80px 0 0;
    margin-top: 80px;
    border-top: 4px solid #e67e22;
}

.main-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.main-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #e67e22;
}

.footer-logo {
    max-height: 50px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-about p {
    line-height: 1.8;
}

.footer-features {
    margin-top: 20px;
    font-size: 14px;
    color: #bdc3c7;
}

.footer-features span {
    display: inline-block;
    margin: 0 15px;
}

.footer-features i {
    color: #e67e22;
    margin-right: 8px;
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #222;
    color: #fff;
    margin-right: 10px;
    font-size: 16px;
}

.social-icons a:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li a {
    color: #bdc3c7;
    display: block;
    margin-bottom: 10px;
    padding: 5px 0;
}

.main-footer ul li a:hover {
    color: #e67e22;
    padding-left: 10px;
}

.footer-bottom {
    background-color: #000;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 13px;
    color: #95a5a6;
    border-top: 1px solid #222;
}

.footer-bottom strong {
    color: #e67e22;
}

.fb-container {
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
}

/* Download Page Styles */
.download-card {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 126, 34, 0.15);
    border-color: #e67e22;
}

.download-icon {
    font-size: 48px;
    color: #e67e22;
    margin-bottom: 20px;
}

.download-card h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.download-card .btn {
    margin-top: 10px;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-tiger {
    background-color: #e67e22;
    color: #fff;
}

.btn-tiger:hover {
    background-color: #d35400;
    color: #fff;
}

/* Login Button in Navbar */
.navbar-nav > li.btn-account > a {
    background-color: #e67e22;
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 25px;
    margin-top: 10px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.navbar-nav > li.btn-account > a:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* --- GAMING SECTIONS --- */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #e67e22;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Server Info Box */
.info-box {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 170px;
}

.info-box:hover {
    border-color: #e67e22;
    transform: translateY(-5px);
}

.info-box i {
    font-size: 40px;
    color: #e67e22;
    margin-bottom: 15px;
}

.info-box h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    color: #fff;
    word-wrap: break-word;
    max-width: 100%;
}

.info-box span {
    color: #888;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    display: block;
}

@media (max-width: 768px) {
    .info-box h3 {
        font-size: 18px;
    }
}

/* WoE Castle Card */
.castle-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.castle-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.5s;
}

.castle-card:hover .castle-img {
    transform: scale(1.1);
}

.castle-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
}

.castle-overlay h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.castle-overlay p {
    margin: 5px 0 0;
    color: #e67e22;
    font-size: 14px;
    font-weight: bold;
}

.castle-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    font-size: 12px;
    align-items: center;
}

.castle-info-grid i {
    color: #e67e22;
    margin-right: 5px;
}

.castle-info-grid > div:nth-child(odd) {
    font-weight: bold;
    color: #aaa;
}
.castle-info-grid img {
    width: 16px; height: 16px; vertical-align: middle; margin-right: 5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(230, 126, 34, 0.1), rgba(0,0,0,0.9)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 4px solid #e67e22;
}

/* --- TIGER THEME GLOBAL OVERRIDES --- */

/* Buttons (Orange Tiger) */
.btn-primary {
    background-color: #e67e22;
    border-color: #d35400;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #d35400;
    border-color: #a04000;
    color: #fff;
}

/* Form Inputs (Dark Theme) */
.form-control {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
}

.form-control:focus {
    border-color: #e67e22;
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.3);
}

/* Page Headers */
.page-header {
    border-bottom: 1px solid #333;
    color: #fff;
}

.page-header i {
    color: #e67e22;
}

/* Text Colors */
.text-primary {
    color: #e67e22;
}

/* Modal / Popup (Dark Theme) */
.modal-content {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #ddd;
}

.modal-header {
    border-bottom: 1px solid #333;
}

.close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.close:hover {
    color: #e67e22;
    opacity: 1;
}

.list-group-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #ddd;
}

/* Server Status Header */
.server-status-item > a {
    cursor: default !important;
    background-color: transparent !important;
    font-size: 12px;
    font-weight: 600;
    color: #888 !important;
    letter-spacing: 0.5px;
}

.server-status-item .status-online {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.4);
}

.server-status-item .status-offline {
    color: #e74c3c;
}

.server-status-item .status-divider {
    margin: 0 8px;
    color: #444;
}

.server-status-item .status-text i {
    color: #e67e22;
    margin-right: 3px;
}

/* Animations */
@keyframes hero-breathe {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Table Styles (Dark Theme) */
.table {
    color: #ccc;
    background-color: #1e1e1e;
}

.table > thead > tr > th, 
.table > tbody > tr > th, 
.table > tfoot > tr > th, 
.table > thead > tr > td, 
.table > tbody > tr > td, 
.table > tfoot > tr > td {
    border-top: 1px solid #333;
}

.table-bordered {
    border: 1px solid #333;
}

.table-bordered > thead > tr > th, 
.table-bordered > tbody > tr > th, 
.table-bordered > tfoot > tr > th, 
.table-bordered > thead > tr > td, 
.table-bordered > tbody > tr > td, 
.table-bordered > tfoot > tr > td {
    border: 1px solid #333 !important;
}

.table > thead > tr > th,
.table > tbody > tr > th {
    background-color: #252525;
    color: #e67e22;
    border-bottom: 1px solid #333;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #151515;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #1e1e1e;
}

.table-hover > tbody > tr:hover {
    background-color: #2a2a2a;
}

/* Legacy FluxCP Tables Dark Mode */
.vertical-table, .horizontal-table, .generic-form-table {
    width: 100%;
    background-color: #1e1e1e;
    color: #ccc;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.vertical-table th, .horizontal-table th, .generic-form-table th,
.vertical-table td, .horizontal-table td, .generic-form-table td {
    border: 1px solid #333;
    padding: 8px;
    background-color: transparent !important;
}

.vertical-table th, .horizontal-table th, .generic-form-table th {
    background-color: #252525 !important;
    color: #e67e22;
    text-align: left;
}

.vertical-table tr:nth-child(odd), .horizontal-table tr:nth-child(odd) {
    background-color: #121212;
}

.vertical-table tr:nth-child(even), .horizontal-table tr:nth-child(even) {
    background-color: #222;
}

/* Global Input Styles for Legacy Forms */
input[type="text"], input[type="password"], input[type="number"], select, textarea {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
}

input[type="submit"], input[type="reset"], input[type="button"] {
    background-color: #e67e22;
    border: 1px solid #d35400;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Navbar Dropdown Dark Theme */
.dropdown-menu {
    background-color: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    padding: 5px 0;
    margin-top: 0;
    border-radius: 0 0 4px 4px;
}

.dropdown-menu > li > a {
    color: #aaa;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: #e67e22;
    color: #fff;
    padding-left: 25px;
}

/* Navbar Active/Open State */
.navbar-nav > .open > a,
.navbar-nav > .open > a:hover,
.navbar-nav > .open > a:focus {
    background-color: #252525;
    color: #e67e22;
}

/* Dark Theme for Default Buttons */
.btn-default {
    background-color: #1e1e1e;
    border-color: #333;
    color: #ccc;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-color: #252525;
    border-color: #444;
    color: #e67e22;
}

/* Gallery Styles */
.gallery-thumbnail {
    height: 200px;
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid #333;
    background-color: #1e1e1e;
    position: relative;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-thumbnail:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.gallery-thumbnail:hover {
    border-color: #e67e22;
}

/* News Card Styles */
.news-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.news-card-img-container {
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .panel-body {
    flex-grow: 1;
}

.news-card .news-title {
    margin-top: 0;
    font-size: 18px;
    color: #e67e22;
}

.news-card hr {
    margin-top: 10px;
    margin-bottom: 15px;
    border-color: #333;
}

.news-card .panel-body p {
    max-height: 60px; /* Limit the height of the paragraph */
    overflow: hidden;
    position: relative;
}

/* Item Slider Card Styles */
.item-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px 0;
    overflow: hidden; /* Ensure content stays inside */
    min-height: 220px; /* Give it a fixed minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-card:hover {
    transform: translateY(-5px);
    border-color: #e67e22;
    animation: breathing-glow 2s ease-in-out infinite alternate;
}


.item-card-content {
    /* This class is no longer needed */
}

.item-card img {
    max-height: 100px; /* Reduced max height for image */
    max-width: 100%; /* Ensure image doesn't overflow width */
}

.item-card h3 {
    color: #e67e22;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure text doesn't overflow */
}

.item-card p {
    font-size: 12px;
    color: #888;
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure text doesn't overflow */
}

/* Modal for Item Card */
.item-modal .modal-content {
    background: transparent;
    box-shadow: none;
    border: none;
}

@keyframes breathing-glow {
    from { box-shadow: 0 0 5px rgba(230, 126, 34, 0.2); }
    to { box-shadow: 0 0 20px rgba(230, 126, 34, 0.6); }
}

/* Item Slider Controls Position */
#itemCarousel .carousel-control {
    background: none !important;
    width: 5%;
    color: #e67e22;
    text-shadow: none;
    font-size: 30px;
}

#itemCarousel .carousel-control.left {
    left: -50px;
}

#itemCarousel .carousel-control.right {
    right: -50px;
}

/* News Modal Content Fix */
#newsModalBody,
#newsModalBodyLoggedIn {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#newsModalBody img,
#newsModalBodyLoggedIn img {
    max-width: 100%;
    height: auto;
}