/*
Theme Name: Troop Calculator Standalone
Theme URI: https://your-site.com
Author: K268 Team  
Author URI: https://your-site.com
Description: A standalone WordPress theme for the Total Battle Troop Calculator. Features an advanced troop optimization calculator with efficiency rankings and quantity recommendations.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: troop-calculator
Tags: gaming, calculator, tool, custom-application

This theme is specifically designed for the Troop Calculator application.
*/

/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Blue & Gold Theme */
    --primary-color: #c9a865;
    --primary-dark: #a68745;
    --secondary-color: #0f1629;
    --accent-color: #d4af37;
    --bg-dark: #0a0e1a;
    --bg-medium: #151b2e;
    --bg-light: #1e2841;
    --text-light: #f5f5f5;
    --text-muted: #b8b8b8;
    --border-color: #2a3b5a;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

/* ===================================
   Layout
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* ===================================
   Header Styles
   =================================== */

.site-header {
    background: linear-gradient(to bottom, rgba(15, 22, 41, 0.95), rgba(10, 14, 26, 0.98));
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo-img {
    height: 70px;
    width: 70px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo .logo-link:hover .site-logo-img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.site-logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: rgba(10, 14, 26, 0.95);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--bg-dark);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .site-logo-img {
        height: 50px;
        width: 50px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-logo h1 {
        font-size: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .site-logo-img {
        height: 45px;
        width: 45px;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

