/*
Theme Name: Metin2 PVP Theme
Theme URI: https://example.com
Author: Antigravity
Description: A modern WordPress theme specially designed for Metin2 PVP servers. Comes with built-in widgets (Server status, rates, rankings) and an ultra-premium dark fantasy UI.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: metin2-theme
Tags: dark, two-columns, custom-menu, custom-background, theme-options, custom-widgets
*/

:root {
    --primary-color: #d4af37; /* Metallic Gold */
    --primary-hover: #f9d764;
    --primary-glow: rgba(212, 175, 55, 0.5);
    
    --bg-darker: #050608;
    --bg-base: #0a0c10;
    --bg-panel: rgba(16, 20, 26, 0.65);
    
    --text-main: #d1d5db;
    --text-muted: #8b949e;
    --text-light: #ffffff;
    
    --border-color: rgba(212, 175, 55, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.04), transparent 25%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-hover);
    text-shadow: 0 0 10px var(--primary-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Redesign */
.site-header {
    background: var(--bg-darker);
    position: relative;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: none;
}

.top-ornament {
    height: 3px;
    background: linear-gradient(90deg, transparent, #8a6d3b, #d4af37, #8a6d3b, transparent);
    position: relative;
    border-bottom: 1px solid #000;
    margin-bottom: 15px;
}

.top-crest {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M10,0 L90,0 L100,20 L50,50 L0,20 Z' fill='%23111' stroke='%23d4af37' stroke-width='2'/%3E%3Cpath d='M45,15 L55,15 L50,35 Z' fill='%23d4af37'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.header-logo-area {
    text-align: center;
    padding: 10px 0 20px;
}

.site-branding {
    display: inline-block;
}

.site-logo {
    display: flex;
    justify-content: center;
}

.site-logo a {
    display: inline-block;
}

.site-logo-text a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-title {
    font-size: 42px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.logo-sub {
    font-size: 11px;
    color: #8a6d3b;
    letter-spacing: 3px;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.header-nav-area {
    background: linear-gradient(to bottom, #15181c, #090a0c);
    position: relative;
}

.header-nav-area::before, .header-nav-area::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}
.header-nav-area::before { top: 0; }
.header-nav-area::after { bottom: 0; }

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; padding: 0;
}

.main-navigation a {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 18px 25px;
    display: block;
    position: relative;
    transition: all 0.3s;
    text-transform: capitalize;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a {
    color: var(--primary-color);
    background: radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 140px;
    background: linear-gradient(to bottom, rgba(5, 6, 8, 0.1) 0%, var(--bg-darker) 100%),
                radial-gradient(circle at center 40%, rgba(45, 25, 10, 0.8) 0%, var(--bg-base) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Fire particles illusion */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 5px 10px rgba(0,0,0,0.8);
    background: linear-gradient(to bottom, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 50px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #111 !important;
    border: 1px solid #ffdf73;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 2px 0 rgba(255,255,255,0.4);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}
.btn-primary:hover::before {
    left: 150%;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6), inset 0 2px 0 rgba(255,255,255,0.5);
}

.btn-secondary {
    background: rgba(16, 20, 26, 0.8);
    color: var(--text-light) !important;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

/* Main Content & Sidebar */
.main-content {
    padding: 80px 0;
    display: flex;
    gap: 40px;
}
.content-area {
    flex: 1;
}
.sidebar {
    width: 380px;
}

/* Glassmorphism Panels */
.widget, .post {
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 var(--border-light);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover, .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1), inset 0 1px 0 var(--border-light);
    border-color: rgba(212, 175, 55, 0.4);
}

.widget::before, .post::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.7;
}

.widget-title {
    font-size: 1.4rem;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    color: var(--primary-hover);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}
.widget-title::after {
    content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Special Widget Styling Overrides */
.widget .quick-buttons-wrap .btn {
    width: 100%;
}
.widget ul li {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}
.widget ul li:hover {
    background: rgba(212, 175, 55, 0.05) !important;
    border-color: rgba(212, 175, 55, 0.2);
}

/* Footer */
.site-footer {
    background: rgba(5, 6, 8, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.footer-socials { margin-bottom: 30px; }
.footer-socials a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%; margin: 0 10px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}
.footer-socials a:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.1);
}

/* Custom Pages (Download & Register) */
.page-custom-bg {
    padding: 100px 0;
    min-height: 80vh;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.title-glow {
    color: var(--primary-color);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.download-card {
    background: rgba(16, 20, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 15px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    border-color: var(--primary-hover);
    background: rgba(26, 32, 40, 0.8);
}

.glass-panel {
    background: rgba(16, 20, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.sys-req-list {
    list-style: none; padding: 0; margin: 0;
}
.sys-req-list li {
    padding: 15px 5px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    justify-content: space-between;
    font-size: 14px;
}
.sys-req-list li:last-child { border-bottom: none; }

.mx-auto { margin-right: auto; margin-left: auto; }

.register-form-wrap {
    max-width: 550px;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px inset var(--border-color);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.register-form-wrap::before {
    content: ''; position: absolute; top: -50px; left: -50px; width: 100px; height: 100px;
    background: var(--primary-color);
    filter: blur(100px); opacity: 0.3; pointer-events: none;
}

.form-group { margin-bottom: 25px; }
.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    color: var(--text-light); 
    font-weight: 500; 
    font-size: 13px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-control {
    width: 100%; 
    padding: 18px 20px; 
    background: rgba(0, 0, 0, 0.5); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; 
    border-radius: 6px; 
    outline: none; 
    transition: all 0.3s;
    font-size: 15px;
    font-family: var(--font-body);
}
.form-control:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); 
    background: rgba(0, 0, 0, 0.7);
}

/* WPForms Custom Glass Styling */
.custom-wpforms-wrapper .wpforms-container {
    margin: 0 !important;
}
.custom-wpforms-wrapper .wpforms-form .wpforms-field-label {
    color: var(--text-light) !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}
.custom-wpforms-wrapper .wpforms-form input[type=text],
.custom-wpforms-wrapper .wpforms-form input[type=email],
.custom-wpforms-wrapper .wpforms-form textarea {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 15px !important;
    transition: all 0.3s !important;
}
.custom-wpforms-wrapper .wpforms-form input[type=text]:focus,
.custom-wpforms-wrapper .wpforms-form input[type=email]:focus,
.custom-wpforms-wrapper .wpforms-form textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}
.custom-wpforms-wrapper .wpforms-form button[type=submit] {
    background: var(--primary-color) !important;
    color: #000 !important;
    font-family: var(--font-heading) !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    width: 100% !important;
    font-size: 16px !important;
}
.custom-wpforms-wrapper .wpforms-form button[type=submit]:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4) !important;
}

@media (max-width: 991px) {
    .main-content { flex-direction: column; }
    .sidebar { width: 100%; }
    .hero-title, .page-hero-title { font-size: 3rem !important; }
    .hero-buttons { flex-direction: column; }
    .download-card { flex-direction: column; text-align: center; gap: 20px; }
}
