/*
Theme Name: Trading Theme
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: A custom WordPress theme for trading website. Developed locally and deployed to Strato hosting.
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: trading-theme
Tags: trading, finance, business, custom
*/

:root {
    --primary: #003366;
    --primary-dark: #00264d;
    --secondary: #36454F;
    --accent: #008080;
    --accent-hover: #006666;
    --light-gray: #F5F5F5;
    --silver: #C0C0C0;
    --white: #FFFFFF;
    --border: var(--silver);

    --bg-color: var(--light-gray);
    --card-bg: var(--white);
    --header-bg: var(--white);
    --footer-bg: var(--secondary);
    --text: var(--secondary);
    --text-light: var(--silver);
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    --header-height: 80px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-color);
    margin: 0;
    padding-top: var(--header-height);
}

/* --- Header & Navigation --- */
.site-header {
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* State for hiding header */
.site-header--hidden {
    transform: translateY(-100%);
}

/* State for showing when mouse is at top */
.site-header--peek {
    transform: translateY(0);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding img {
    max-height: 80px;
    width: auto;
    display: block;
    padding: 5px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--accent);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.language-switcher a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.8rem;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle at top right, var(--accent) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 160px 0 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(150% 100% at 50% 0%);
}

/* Modern animated mesh gradient effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23FFFFFF" fill-opacity="0.05" d="M44.7,-76.4C58.1,-69.2,69.2,-57.1,76.4,-43.3C83.6,-29.5,86.9,-14.8,85.5,-0.8C84.1,13.2,78,26.3,70.1,38.8C62.2,51.3,52.5,63.1,40.1,70.8C27.7,78.5,12.6,82,-1.8,85.1C-16.2,88.2,-32.4,90.8,-46.1,84.1C-59.8,77.4,-71,61.4,-78.3,44.8C-85.6,28.2,-89,11,-87.4,-5.2C-85.8,-21.4,-79.2,-36.6,-69.1,-48.8C-59,-61.1,-45.4,-70.4,-31.4,-77.3C-17.4,-84.2,-3,-88.7,11.1,-86.8C25.2,-84.9,31.3,-83.6,44.7,-76.4Z" transform="translate(100 100)" /></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.2;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.1; }
    to { transform: scale(1.2); opacity: 0.3; }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: var(--white) !important;
}

.hero p {
    font-size: 1.5rem;
    max-width: 750px;
    margin: 0 auto 45px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95) !important;
}

/* --- Content Overlap Layout --- */
.site-main {
    max-width: 1200px;
    margin: -120px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 30;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 80px 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Modern Card Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.trading-card {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.trading-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,51,102,0.1);
    border-color: var(--accent);
}

.trading-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 0;
    background: var(--accent);
    transition: height 0.3s ease;
}

.trading-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 128, 128, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.trading-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--accent);
    color: white;
}

.trading-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.trading-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 25px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    gap: 8px;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 15px;
}

/* Button Refinement */
.btn-accent {
    background: var(--white);
    color: var(--primary);
    padding: 18px 42px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.4s;
    border: none;
}

.btn-accent:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(0,51,102,0.3);
    transform: scale(1.05);
}

/* Trading Widget Styles */
.trading-widget {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.trading-price {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
}

.price-change {
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.price-change.positive {
    color: #28a745;
}

.price-change.negative {
    color: #dc3545;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer .container {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .trading-price {
        font-size: 1.5rem;
    }
}

