/*
Theme Name: TradeMistress
Theme URI: https://trademistress.com
Author: Nickie Brown
Author URI: https://trademistress.com
Description: Professional trading calculator theme with purple & gold branding. Built for traders by a trader. Features include trading diary, calculator showcase, and authentic storytelling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trademistress
Tags: trading, finance, calculators, purple, gold, professional, responsive

TradeMistress Theme, Copyright 2024 Nickie Brown
TradeMistress is distributed under the terms of the GNU GPL
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - CSS Variables
2.0 - Reset & Base Styles
3.0 - Typography
4.0 - Layout
5.0 - Navigation
6.0 - Content
7.0 - Widgets
8.0 - Footer
9.0 - Media Queries
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - CSS Variables
--------------------------------------------------------------*/
:root {
    /* Brand Colors */
    --tm-purple-main: #667eea;
    --tm-purple-dark: #764ba2;
    --tm-purple-light: #e7eaf6;
    --tm-gold-main: #ffc107;
    --tm-gold-dark: #d4af37;
    --tm-gold-light: #fff9e6;
    
    /* Neutrals */
    --tm-white: #ffffff;
    --tm-black: #000000;
    --tm-dark: #1a1a2e;
    --tm-grey-dark: #333333;
    --tm-grey: #666666;
    --tm-grey-light: #f8f9fa;
    
    /* Status Colors */
    --tm-success: #11998e;
    --tm-danger: #f5576c;
    
    /* Spacing */
    --tm-spacing-xs: 8px;
    --tm-spacing-sm: 16px;
    --tm-spacing-md: 24px;
    --tm-spacing-lg: 40px;
    --tm-spacing-xl: 60px;
    --tm-spacing-xxl: 80px;
    
    /* Typography */
    --tm-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --tm-font-size-base: 16px;
    --tm-line-height-base: 1.6;
    
    /* Borders & Radius */
    --tm-radius-sm: 8px;
    --tm-radius-md: 12px;
    --tm-radius-lg: 16px;
    --tm-radius-full: 50px;
    
    /* Shadows */
    --tm-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --tm-shadow-md: 0 4px 12px rgba(102, 126, 234, 0.15);
    --tm-shadow-lg: 0 8px 30px rgba(102, 126, 234, 0.2);
    
    /* Transitions */
    --tm-transition: all 0.3s ease;
}

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

html {
    font-size: var(--tm-font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--tm-font-primary);
    line-height: var(--tm-line-height-base);
    color: var(--tm-grey-dark);
    background-color: var(--tm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
3.0 - Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: var(--tm-purple-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--tm-spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--tm-spacing-sm);
}

a {
    color: var(--tm-purple-main);
    text-decoration: none;
    transition: var(--tm-transition);
}

a:hover {
    color: var(--tm-gold-main);
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

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

.tm-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.tm-section {
    padding: var(--tm-spacing-xxl) 0;
}

.tm-section-sm {
    padding: var(--tm-spacing-xl) 0;
}

/*--------------------------------------------------------------
5.0 - Navigation
--------------------------------------------------------------*/
.site-header {
    background: linear-gradient(135deg, var(--tm-purple-main) 0%, var(--tm-purple-dark) 100%);
    box-shadow: var(--tm-shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.site-header .tm-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
}

.site-title a {
    color: var(--tm-white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title a:hover {
    color: var(--tm-gold-main);
}

.crown-icon {
    font-size: 2rem;
}

.main-navigation {
    display: flex;
    gap: var(--tm-spacing-md);
    align-items: center;
}

.main-navigation a {
    color: var(--tm-white);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--tm-radius-sm);
    transition: var(--tm-transition);
}

.main-navigation a:hover {
    background: rgba(255, 193, 7, 0.2);
    color: var(--tm-gold-main);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--tm-gold-main);
    color: var(--tm-purple-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--tm-radius-sm);
    font-weight: 700;
    cursor: pointer;
}

/*--------------------------------------------------------------
6.0 - Content
--------------------------------------------------------------*/
.site-main {
    min-height: 70vh;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--tm-purple-main) 0%, var(--tm-purple-dark) 100%);
    color: var(--tm-white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-crown {
    font-size: 4rem;
    margin-bottom: var(--tm-spacing-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    color: var(--tm-white);
    margin-bottom: var(--tm-spacing-sm);
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: var(--tm-spacing-sm);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--tm-spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--tm-spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: var(--tm-radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    transition: var(--tm-transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--tm-gold-main);
    color: var(--tm-purple-dark);
}

.btn-primary:hover {
    background: var(--tm-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--tm-white);
    border: 2px solid var(--tm-white);
}

.btn-secondary:hover {
    background: var(--tm-white);
    color: var(--tm-purple-dark);
}

/* Stats Bar */
.stats-bar {
    background: var(--tm-gold-main);
    padding: var(--tm-spacing-md) 0;
    box-shadow: var(--tm-shadow-sm);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--tm-spacing-md);
    text-align: center;
}

.stat-item {
    color: var(--tm-purple-dark);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Calculator Cards */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tm-spacing-lg);
    margin: var(--tm-spacing-lg) 0;
}

.calculator-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius-lg);
    padding: var(--tm-spacing-lg);
    text-align: center;
    box-shadow: var(--tm-shadow-md);
    transition: var(--tm-transition);
    border: 2px solid transparent;
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tm-shadow-lg);
    border-color: var(--tm-purple-light);
}

.calculator-icon {
    font-size: 3.5rem;
    margin-bottom: var(--tm-spacing-sm);
}

.calculator-card h3 {
    color: var(--tm-purple-dark);
    margin-bottom: var(--tm-spacing-sm);
}

.calculator-card p {
    color: var(--tm-grey);
    margin-bottom: var(--tm-spacing-md);
}

.calculator-card .btn {
    background: linear-gradient(135deg, var(--tm-gold-main) 0%, var(--tm-gold-dark) 100%);
    color: var(--tm-purple-dark);
    padding: 12px 30px;
    border-radius: var(--tm-radius-sm);
}

/* Trading Diary Cards */
.trade-card {
    background: var(--tm-white);
    border-radius: var(--tm-radius-md);
    padding: var(--tm-spacing-md);
    box-shadow: var(--tm-shadow-sm);
    transition: var(--tm-transition);
    border-left: 4px solid var(--tm-purple-main);
}

.trade-card:hover {
    box-shadow: var(--tm-shadow-md);
    transform: translateX(4px);
}

.trade-card.profit {
    border-left-color: var(--tm-success);
}

.trade-card.loss {
    border-left-color: var(--tm-danger);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--tm-spacing-sm);
}

.trade-title {
    font-size: 1.25rem;
    color: var(--tm-purple-dark);
    font-weight: 700;
}

.trade-result {
    font-size: 1.5rem;
    font-weight: 700;
}

.trade-result.profit {
    color: var(--tm-success);
}

.trade-result.loss {
    color: var(--tm-danger);
}

.trade-meta {
    display: flex;
    gap: var(--tm-spacing-sm);
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--tm-grey);
    margin-bottom: var(--tm-spacing-sm);
}

.trade-excerpt {
    color: var(--tm-grey-dark);
    margin-bottom: var(--tm-spacing-sm);
}

/* About Section */
.about-section {
    background: var(--tm-white);
    padding: var(--tm-spacing-xxl) 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--tm-gold-main);
    margin: 0 auto var(--tm-spacing-md);
    object-fit: cover;
    box-shadow: var(--tm-shadow-md);
}

.about-content h2 {
    margin-bottom: var(--tm-spacing-sm);
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--tm-spacing-md);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--tm-purple-main) 0%, var(--tm-purple-dark) 100%);
    color: var(--tm-white);
    padding: var(--tm-spacing-xl) 20px;
    border-radius: var(--tm-radius-lg);
    margin: var(--tm-spacing-lg) 0;
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: var(--tm-spacing-md) auto 0;
    display: flex;
    gap: var(--tm-spacing-sm);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--tm-radius-sm);
    font-size: 1rem;
}

.newsletter-form button {
    background: var(--tm-gold-main);
    color: var(--tm-purple-dark);
    padding: 14px 30px;
    border: none;
    border-radius: var(--tm-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--tm-transition);
}

.newsletter-form button:hover {
    background: var(--tm-gold-dark);
}

/*--------------------------------------------------------------
7.0 - Widgets
--------------------------------------------------------------*/
.widget {
    margin-bottom: var(--tm-spacing-lg);
}

.widget-title {
    color: var(--tm-purple-dark);
    margin-bottom: var(--tm-spacing-sm);
}

/*--------------------------------------------------------------
8.0 - Footer
--------------------------------------------------------------*/
.site-footer {
    background: var(--tm-dark);
    color: var(--tm-white);
    padding: var(--tm-spacing-xl) 0 var(--tm-spacing-md);
    text-align: center;
}

.footer-crown {
    font-size: 2.5rem;
    margin-bottom: var(--tm-spacing-sm);
}

.footer-title {
    font-size: 1.5rem;
    color: var(--tm-white);
    margin-bottom: var(--tm-spacing-xs);
}

.footer-tagline {
    opacity: 0.8;
    margin-bottom: var(--tm-spacing-md);
}

.footer-nav {
    margin: var(--tm-spacing-md) 0;
    display: flex;
    justify-content: center;
    gap: var(--tm-spacing-md);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--tm-gold-main);
    opacity: 0.8;
    transition: var(--tm-transition);
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.875rem;
    margin-top: var(--tm-spacing-md);
}

/*--------------------------------------------------------------
9.0 - Media Queries
--------------------------------------------------------------*/
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .main-navigation {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: var(--tm-spacing-sm);
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --tm-font-size-base: 14px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .hero-crown {
        font-size: 3rem;
    }
}

/*--------------------------------------------------------------
Latest Articles Section
--------------------------------------------------------------*/
.latest-articles-section article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.latest-articles-section article h3 a:hover {
    color: var(--tm-purple-main);
}

.latest-articles-section article a[href*="Read Full Article"]:hover {
    gap: 12px;
}

.latest-articles-section article a[href*="Read Full Article"]:hover span {
    transform: translateX(4px);
}

/* Article Card Responsive */
@media (max-width: 768px) {
    .latest-articles-section article {
        padding: 25px !important;
    }
    
    .latest-articles-section article h3 {
        font-size: 1.25rem !important;
    }
}

