/* style.css - The Witcher Inspired Theme for Player & Admin Web Panels */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;700&display=swap');

:root {
    --color-bg-dark: #0a0a0b;
    --color-panel-bg: rgba(22, 22, 26, 0.92);
    --color-gold: #c1a063;
    --color-gold-hover: #e0be7d;
    --color-silver: #8b9bb4;
    --color-parchment: #f4edd2;
    --color-text-light: #e5e5e7;
    --color-igni: #ff5500;
    --color-igni-glow: rgba(255, 85, 0, 0.4);
    --color-quen: #dfb213;
    --color-quen-glow: rgba(223, 178, 19, 0.3);
    --color-card-bg: rgba(30, 30, 36, 0.85);
    --color-danger: #9e2a2b;
    --color-danger-hover: #c13d3e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0b;
}
::-webkit-scrollbar-thumb {
    background: #2a2a30;
    border: 2px solid #0a0a0b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--color-bg-dark);
    /* Foggy background with red/amber flame glows at the bottom representing campfire/embers */
    background-image: 
        radial-gradient(circle at 50% 100%, rgba(139, 45, 4, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 20%, rgba(20, 20, 25, 1) 0%, rgba(10, 10, 11, 1) 100%);
    background-attachment: fixed;
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* Main Container styled with Witcher aesthetic (bronze frame and dark leather texture mockup) */
.container {
    background: var(--color-panel-bg);
    border: 2px solid #232328;
    border-top: 4px solid var(--color-gold);
    border-bottom: 4px solid var(--color-gold);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    padding: 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Mini Container for Login / Register */
.container-small {
    max-width: 420px;
}

/* Medallion Icon & Witcher Header */
.witcher-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.witcher-medallion {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    display: block;
    animation: medallion-pulse 4s infinite ease-in-out;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.witcher-medallion:hover {
    transform: scale(1.12);
}

.medallion-outer-ring {
    transform-origin: center;
    animation: ring-rotate 35s linear infinite;
}

.medallion-eye {
    animation: eye-glow 2s infinite ease-in-out;
}

@keyframes eye-glow {
    0%, 100% {
        fill: #ff2200;
        filter: drop-shadow(0 0 2px #ff2200);
    }
    50% {
        fill: #ff9900;
        filter: drop-shadow(0 0 5px #ff9900);
    }
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes medallion-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(193, 160, 99, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 85, 0, 0.7));
    }
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--color-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    font-size: 26px;
    border-bottom: 1.5px solid rgba(193, 160, 99, 0.2);
    padding-bottom: 12px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 18px;
    color: var(--color-gold);
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(193, 160, 99, 0.3), transparent);
}

p {
    font-size: 14px;
    color: #b0b0b5;
    margin-bottom: 15px;
}

/* Form Styles */
form {
    width: 100%;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12px;
    color: var(--color-silver);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid #3c3c45;
    border-left: 3px solid var(--color-gold);
    color: var(--color-text-light);
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: var(--color-gold-hover);
    box-shadow: 
        0 0 10px var(--color-quen-glow),
        inset 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(15, 15, 20, 0.95);
}

/* Witcher Button - styled like a physical bronze plate with hover ember flames */
button, .btn {
    display: inline-block;
    background: linear-gradient(135deg, #8c6e3b 0%, #a3824b 50%, #8c6e3b 100%);
    color: #0b0a08;
    padding: 14px 24px;
    border: 1px solid #664f26;
    border-radius: 3px;
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    text-align: center;
    text-decoration: none;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #a3824b 0%, #bca167 50%, #a3824b 100%);
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px var(--color-igni-glow),
        0 6px 12px rgba(0,0,0,0.4);
}

button:active, .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn-secondary:hover {
    background: rgba(193, 160, 99, 0.1);
    color: var(--color-gold-hover);
}

.btn-danger {
    background: linear-gradient(135deg, #7a1f1d 0%, #9e2a2b 50%, #7a1f1d 100%);
    color: #fff;
    border: 1px solid #5a1415;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #9e2a2b 0%, #c13d3e 50%, #9e2a2b 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(158, 42, 43, 0.5);
}

/* Navigation & Footer Links */
.links-footer {
    margin-top: 25px;
    font-size: 13px;
    color: var(--color-silver);
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--color-gold-hover);
    text-shadow: 0 0 6px rgba(193, 160, 99, 0.4);
}

/* Witcher Status Messages */
.error-msg {
    background: rgba(158, 42, 43, 0.2);
    border-left: 4px solid var(--color-danger);
    color: #ff9e9e;
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
}

.success-msg {
    background: rgba(193, 160, 99, 0.15);
    border-left: 4px solid var(--color-gold);
    color: var(--color-gold);
    padding: 12px 16px;
    border-radius: 3px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: left;
    font-weight: 500;
}

/* User Profile Header Component */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(193, 160, 99, 0.2);
    padding-bottom: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.player-welcome h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.player-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logout-link {
    color: #ff6b6b;
    font-weight: 600;
}

.logout-link:hover {
    color: #ff8787;
    text-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

/* Witcher Stat Cards (Grid) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--color-gold);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(193, 160, 99, 0.1);
}

.stat-card h4 {
    color: var(--color-silver);
    font-size: 11px;
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--color-gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Lists and items */
ul.witcher-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

ul.witcher-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--color-silver);
    padding: 12px 18px;
    border-radius: 3px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

ul.witcher-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--color-gold);
    padding-left: 22px;
}

ul.witcher-list li strong {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--color-gold);
    font-size: 14px;
}

/* Quest Specific Styling */
.quest-item {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid #232328;
    border-left: 3.5px solid var(--color-gold);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.quest-item:hover {
    background: rgba(20, 20, 24, 0.8);
    transform: translateX(4px);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.quest-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 15px;
    font-weight: bold;
    color: var(--color-gold);
}

.quest-status {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.status-discovered { background: rgba(223, 178, 19, 0.15); border: 1px solid #dfb213; color: #dfb213; }
.status-active { background: rgba(255, 85, 0, 0.15); border: 1px solid #ff5500; color: #ff5500; }
.status-completed { background: rgba(76, 175, 80, 0.15); border: 1px solid #4CAF50; color: #4CAF50; }
.status-failed { background: rgba(244, 67, 54, 0.15); border: 1px solid #f44336; color: #f44336; }

.quest-desc {
    font-size: 12.5px;
    color: #92929c;
    line-height: 1.5;
}

/* Admin Panel Tables */
.admin-global-box {
    background: rgba(158, 42, 43, 0.05);
    border: 1.5px dashed rgba(193, 160, 99, 0.3);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

table.witcher-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(10, 10, 12, 0.5);
    border: 1px solid #232328;
}

table.witcher-table th {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    background: rgba(20, 20, 25, 0.9);
    padding: 14px 16px;
    border-bottom: 2px solid #232328;
    text-align: left;
}

table.witcher-table td {
    padding: 14px 16px;
    font-size: 13px;
    border-bottom: 1px solid #1a1a20;
    color: #cfcfd5;
}

table.witcher-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

table.witcher-table td strong {
    color: var(--color-gold);
}

/* Small contextual action button used in tables */
.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    width: auto;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* Responsive fixes */
@media (max-width: 600px) {
    .container {
        padding: 25px 20px;
    }
    
    .player-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    h2 {
        font-size: 22px;
    }
}
