/*
Theme Name: Stock Market Theme
Theme URI: 
Author: Your Name
Author URI: 
Description: A custom WordPress theme for stock market related websites
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stockmarket-theme
*/

:root {
    --primary-color: #0B1F3A;
    --secondary-color: #FF9900;
}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Typography */
:root {
    --body-font: 'Roboto', sans-serif;
    --heading-font: 'Roboto', sans-serif;
    --numbers-font: 'Roboto', sans-serif;
}

/* Base Typography */
body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
}

/* Numbers & Financial Data */
.price, .percentage, .stats, .numbers {
    font-family: var(--numbers-font);
    font-weight: 500;
}

/* Trading Terms & Technical Text */
.technical-term, .trading-data {
    font-family: var(--body-font);
    font-weight: 500;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: var(--primary-color);
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 0rem 0;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    background-color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
    margin-right: 20px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.button:hover {
    background-color: #e68a00;
}

/* Bootstrap Header Customization */
.navbar {
    padding: 1rem 0;
}

.navbar-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}
.footer-brand img {
    height: auto;
    width: 215px;
}
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.8rem;
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
}

/* Header Animations */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.site-header.scrolled-down {
    transform: translateY(-100%);
}

.site-header.scrolled-up {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Stock Ticker Bar */
.stock-ticker-bar {
    background: var(--primary-color);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrapper {
    overflow: hidden;
}

.stock-ticker {
    display: flex;
    gap: 30px;
    animation: ticker 30s linear infinite;
}

.stock-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--numbers-font);
}

.symbol {
    font-weight: 600;
    color: var(--secondary-color);
}

.change.positive {
    color: #00ff9d;
}

.change.negative {
    color: #ff4d4d;
}

/* Navbar Styling */
.navbar {
    background: rgba(11, 31, 58, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.brand-text i {
    color: var(--secondary-color);
}

/* Hamburger Animation */
.hamburger-animation {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-animation span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    transition: 0.3s ease;
}

.hamburger-animation span:nth-child(1) { top: 0; }
.hamburger-animation span:nth-child(2) { top: 9px; }
.hamburger-animation span:nth-child(3) { top: 18px; }

.navbar-toggler[aria-expanded="true"] .hamburger-animation span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-animation span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-animation span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Nav Extras */
.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}


.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-dot.active {
    background: #00ff9d;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    animation: pulse 2s infinite;
}


/* Animations */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 157, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .nav-extras {
        margin: 20px 0 0 0;
        padding: 20px 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
} 