/* ============================================
   SKYRIM WIKI - PREMIUM THEME
   ============================================ */

/* Premium Skyrim Theme Colors */
:root {
    --hue: 200;
    --template-bg-light: #0a0a0a;
    --template-text-dark: #e8e8e8;
    --template-text-light: #ffffff;
    --template-link-color: #a8b8d8;
    --template-special-color: #1a2332;
    --skyrim-gold: #d4af37;
    --skyrim-gold-light: #f4d03f;
    --skyrim-gold-dark: #b8941f;
    --skyrim-dark: #0a0a0a;
    --skyrim-blue: #5a7ba8;
    --skyrim-blue-dark: #3a5b88;
    --skyrim-brown: #6b5a4a;
    --skyrim-red: #8b2e2e;
    --skyrim-gradient: linear-gradient(135deg, #1a2332 0%, #0f1419 50%, #0a0a0a 100%);
    --skyrim-gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
}

/* Body Background - Premium Dark with Subtle Texture */
body.site {
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 35, 50, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(0, 0, 0, 0.03) 100px,
            rgba(0, 0, 0, 0.03) 200px
        );
    color: #e8e8e8;
    font-family: 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
}

/* Header - Premium Dark with Gold Accents */
.header {
    background: var(--skyrim-gradient);
    border-bottom: 4px solid var(--skyrim-gold);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--skyrim-gradient-gold);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Logo/Brand Styling - LARGE AND IMPRESSIVE */
.navbar-brand {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    max-height: 120px !important;
    height: auto;
    width: auto;
    min-height: 100px;
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
    transform: scale(1.05);
}

.brand-logo span {
    color: var(--skyrim-gold);
    font-size: 3rem !important;
    font-weight: bold;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.brand-logo:hover span {
    color: var(--skyrim-gold-light);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(244, 208, 63, 0.7),
        0 0 50px rgba(244, 208, 63, 0.4);
}

.site-description {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

/* Navigation Menu - Premium Styling */
.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: #d4d4d4 !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(26, 35, 50, 0.3);
    border-radius: 4px 4px 0 0;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--skyrim-gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--skyrim-gold-light) !important;
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link:focus::before {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--skyrim-gold) !important;
    background: rgba(212, 175, 55, 0.2);
    border-bottom-color: var(--skyrim-gold);
}

.navbar-nav .nav-link.active::before {
    transform: scaleX(1);
}

/* Main Content Area - Premium Cards */
.container-main {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.container-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--skyrim-gradient-gold);
    opacity: 0.5;
}

/* Article Cards - Premium Parchment Style */
.item-content,
.article-card,
.blog-item {
    background: linear-gradient(180deg, rgba(42, 52, 70, 0.9) 0%, rgba(26, 35, 50, 0.9) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.item-content::before,
.article-card::before,
.blog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.item-content:hover,
.article-card:hover,
.blog-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: var(--skyrim-gold);
}

.item-content:hover::before,
.article-card:hover::before,
.blog-item:hover::before {
    left: 100%;
}

/* Article Titles - Large and Impressive */
.item-title,
.item-title a,
h1, h2, h3, h4, h5, h6 {
    color: var(--skyrim-gold);
    font-family: 'Georgia', serif;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(212, 175, 55, 0.3);
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--skyrim-gold);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--skyrim-gold-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.item-title a {
    font-size: 1.8rem;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
}

.item-title a:hover {
    color: var(--skyrim-gold-light);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(244, 208, 63, 0.5);
    transform: translateX(5px);
}

/* Links - Enhanced Visibility */
a {
    color: var(--skyrim-blue);
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a:hover,
a:focus {
    color: var(--skyrim-gold-light);
    border-bottom-color: var(--skyrim-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Buttons - Premium Skyrim Style */
.btn,
.btn-primary {
    background: linear-gradient(135deg, #5c4a3a 0%, #3d2f24 50%, #5c4a3a 100%);
    border: 2px solid var(--skyrim-gold);
    color: var(--skyrim-gold);
    font-weight: bold;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #6b5a4a 0%, #4d3f34 50%, #6b5a4a 100%);
    border-color: var(--skyrim-gold-light);
    color: var(--skyrim-gold-light);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn:hover::before,
.btn-primary:hover::before {
    left: 100%;
}

.btn:active,
.btn-primary:active {
    transform: translateY(0);
}

/* Breadcrumbs - Enhanced */
.breadcrumb {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(26, 35, 50, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--skyrim-blue);
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--skyrim-gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.breadcrumb-item.active {
    color: var(--skyrim-gold);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--skyrim-gold);
    font-weight: bold;
    padding: 0 0.75rem;
}

/* Sidebar - Premium Styling */
.sidebar,
.sidebar-left,
.sidebar-right {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

/* Module Headings - Large and Noticeable */
.module-title,
.mod-custom__title {
    color: var(--skyrim-gold);
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 3px solid var(--skyrim-gold);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(212, 175, 55, 0.3);
    position: relative;
    padding-left: 1rem;
}

.module-title::before,
.mod-custom__title::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--skyrim-gold);
    font-size: 0.8em;
}

/* Footer - Premium Dark */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-top: 4px solid var(--skyrim-gold);
    color: #999;
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

/* Login Form - Premium Styling with Increased Width */
#login-form,
.mod-login {
    background: linear-gradient(180deg, rgba(42, 52, 70, 0.95) 0%, rgba(26, 35, 50, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.form-control,
.form-control:focus {
    background-color: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: #e8e8e8;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: var(--skyrim-gold);
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 
        0 0 0 0.2rem rgba(212, 175, 55, 0.25),
        0 0 20px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: #888;
}

/* Article Info - Enhanced Visibility */
.article-info,
.item-info {
    background: rgba(26, 35, 50, 0.6);
    border-left: 4px solid var(--skyrim-gold);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #b8b8b8;
}

.article-info dt,
.item-info dt {
    color: var(--skyrim-gold);
    font-weight: 600;
    margin-right: 0.5rem;
}

.article-info dd,
.item-info dd {
    color: #d4d4d4;
    margin-left: 0;
}

/* Tables - Premium Styling */
.table {
    color: #e8e8e8;
    background: rgba(26, 35, 50, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(180deg, #2c3e50 0%, #1a2332 100%);
    color: var(--skyrim-gold);
    border-bottom: 3px solid var(--skyrim-gold);
    padding: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table tbody tr {
    background-color: rgba(26, 35, 50, 0.4);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.15);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

/* Pagination - Enhanced */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    color: var(--skyrim-blue);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    border-color: var(--skyrim-gold);
    color: var(--skyrim-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--skyrim-gradient-gold);
    border-color: var(--skyrim-gold);
    color: #1a1a1a;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* Read More Links - Enhanced */
.readmore a,
.readmore-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--skyrim-gold);
    border-radius: 6px;
    color: var(--skyrim-gold);
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.readmore a:hover,
.readmore-link:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--skyrim-gold-light);
    color: var(--skyrim-gold-light);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-logo img {
        max-height: 80px !important;
    }
    
    .brand-logo span {
        font-size: 2rem !important;
    }
    
    .container-main {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
    
    /* Login Form - Mobile */
    #login-form,
    .mod-login {
        padding: 2rem 1.5rem;
        width: 100% !important;
    }
}

/* Scrollbar - Premium Styling */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--skyrim-brown) 0%, #4a3a2a 100%);
    border-radius: 7px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--skyrim-gold) 0%, var(--skyrim-gold-dark) 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--skyrim-gold-light);
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--skyrim-gold-light);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-content,
.article-card,
.blog-item {
    animation: fadeIn 0.5s ease-out;
}

/* Text Content - Enhanced Readability */
p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d4d4d4;
}

ul, ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #d4d4d4;
}

strong {
    color: var(--skyrim-gold);
    font-weight: bold;
}

em {
    color: var(--skyrim-gold-light);
    font-style: italic;
}

/* Code Blocks */
code, pre {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    color: var(--skyrim-gold-light);
    font-family: 'Courier New', monospace;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--skyrim-gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #b8b8b8;
    font-style: italic;
    background: rgba(26, 35, 50, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 4px;
}
