/* public_html/css/style.css */

:root {
    /* Color Palette */
    --color-bg-dark: #0a192f;
    /* Deep Navy Background */
    --color-bg-card: #112240;
    /* Lighter Navy for cards */
    --color-bg-hover: #233554;

    --color-text-primary: #ccd6f6;
    /* Off-white text */
    --color-text-secondary: #8892b0;
    /* Muted blue-grey */

    --color-accent-gold: #d4af37;
    /* premium gold */
    --color-accent-gold-bright: #f5cc50;

    --color-success: #64ffda;
    --color-danger: #ff6b6b;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing & Layout */
    --border-radius: 8px;
    --nav-height: 80px;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

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

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-accent-gold);
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent-gold);
}

/* Custom Section Header with Action Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-text-secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

a {
    color: var(--color-accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-gold-bright);
}

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

/* Header / Navigation */
header {
    background-color: rgba(10, 25, 47, 0.95);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    /* Subtle gold border */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-accent-gold);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

nav a:hover,
nav a.active {
    color: var(--color-accent-gold);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Cards */
.card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card h3 {
    margin-top: 0;
    color: var(--color-accent-gold);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-text-secondary);
    border-radius: 4px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

button,
.btn {
    display: inline-block;
    background-color: transparent;
    color: var(--color-accent-gold);
    border: 1px solid var(--color-accent-gold);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover,
.btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-dark);
    font-weight: bold;
}

.btn-primary:hover {
    background-color: var(--color-accent-gold-bright);
}

.nav-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--color-text-secondary);
}

th {
    color: var(--color-accent-gold);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:hover {
    background-color: var(--color-bg-hover);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utilities */
.text-gold {
    color: var(--color-accent-gold);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
    gap: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-main-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    header {
        height: auto;
        position: relative;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: absolute;
        right: 20px;
        top: 25px;
        /* Alignment adjustment */
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--color-accent-gold);
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background: var(--color-accent-gold);
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .nav-links {
        height: 0;
        overflow: hidden;
        width: 100%;
        transition: height 0.3s ease-in-out;
    }

    .nav-links.nav-open {
        height: auto;
        padding-bottom: 1rem;
    }

    /* Portfolio Table Mobile Fix (Card View) */
    .responsive-table thead {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 2rem;
        /* Reverted to reasonable spacing */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        /* Stronger shadow */
        border: 1px solid rgba(212, 175, 55, 0.2);
        /* Subtle Gold Border */
        background: #172a45;
        /* Lighter Navy for better contrast against background */
        padding: 1.5rem;
        border-radius: 4px;
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        text-align: right;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .responsive-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--color-text-secondary);
        text-align: left;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    /* Stack Nav vertically */
    nav {
        width: 100%;
        margin-top: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        text-align: center;
    }

    nav ul li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav a {
        display: block;
        padding: 10px;
    }

    .grid-2,
    .grid-3,
    .grid-main-sidebar {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Adjust Section Header for mobile */
    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-header .btn {
        width: 100%;
        text-align: center;
    }

    /* Reorder Portfolio for Mobile */
    .allocation-card {
        order: -1;
    }
}