/*
Theme Name: Kaosidyl Fantasy
Theme URI: https://kaosidyl.com
Author: Kaosidyl
Author URI: https://kaosidyl.com
Description: A dark, immersive fantasy WordPress theme inspired by Dungeons & Dragons, epic adventures, and legendary quests. Features a classic RPG header banner, visible custom navigation menu, sidebar widget area with tag cloud support, and styled admin footer links.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: fantasy, dark, dnd, gaming, tag-cloud, custom-header, responsive-layout, two-columns
Text Domain: kaosidyl-fantasy
*/

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0b0e;
    background-image: radial-gradient(circle at top, #1c1524 0%, #0d0b0e 70%);
    color: #c9c0b1;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover, a:focus {
    color: #f3e5ab;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Header & Banner */
.site-header {
    background: #141018;
    border-bottom: 3px solid #7a1f1d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    position: relative;
}

.banner-container {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #3d2b1f;
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.8) contrast(1.1);
}

.default-banner {
    background: linear-gradient(135deg, #2a0808 0%, #120303 50%, #1f1403 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid #8b0000;
}

.site-title {
    font-size: 2.8rem;
    font-family: 'Cinzel', 'Trajan Pro', 'Georgia', serif;
    color: #e6c687;
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-title a {
    color: inherit;
}

.site-description {
    font-size: 1.1rem;
    color: #9a8c7c;
    font-style: italic;
    margin-top: 5px;
}

/* Navigation Menu */
.main-navigation {
    background: #19121d;
    border-top: 1px solid #3d2b1f;
    border-bottom: 2px solid #7a1f1d;
    text-align: center;
    padding: 10px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-navigation li a {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: rgba(30, 22, 35, 0.5);

}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a {
    color: #fff;
    background: #4a1514;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Layout */
.site-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content-area {
    flex: 3;
    min-width: 300px;
}

.sidebar-area {
    flex: 1;
    min-width: 260px;
}

/* Articles & Posts */
.post-card {
    background: #16121a;
    border: 1px solid #3a2e3f;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b0000, transparent);
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 0.85rem;
    color: #8c7f70;
    margin-bottom: 15px;
    border-bottom: 1px dashed #3a2e3f;
    padding-bottom: 8px;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #d8d0c5;
}

/* Sidebar Widgets & Tag Cloud */
.widget {
    background: #141018;
    border: 1px solid #3a2a20;
    border-top: 3px solid #8b0000;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.widget-title {
    font-size: 1.3rem;
    color: #e6c687;
    border-bottom: 1px solid #3a2a20;
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tag Cloud Styling */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tagcloud a {
    display: inline-block;
    background: #251b29;
    color: #c9c0b1;
    border: 1px solid #4a3850;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: #7a1f1d;
    color: #ffffff;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* Footer & Admin Login */
.site-footer {
    background: #09070b;
    border-top: 2px solid #3d2b1f;
    padding: 25px 20px;
    text-align: center;
    color: #7a6e60;
    font-size: 0.9rem;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-separator {
    color: #4a3850;
}

.admin-login-link {
    color: #a39276;
    font-weight: bold;
}

.admin-login-link:hover {
    color: #e6c687;
}

/* Responsive */
@media (max-width: 768px) {
    .site-container {
        flex-direction: column;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
}