/*
Theme Name: Astra Child
Template: astra
Description: Child theme of Astra for market-bulls.com style customizations
Version: 1.0.0
*/

/* IMPORTANT: High priority styles to ensure visibility */

/* TEST: Temporary bright border to verify child theme is loading */
body::before {
    content: "MARKET BULLS CHILD THEME ACTIVE";
    position: fixed;
    top: 0;
    left: 0;
    background: #F09E00;
    color: #040a28;
    padding: 5px 10px;
    z-index: 99999;
    font-weight: bold;
    font-size: 12px;
}

/* Import Google Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===========================
   ROOT VARIABLES - Market Bulls Color Scheme
   =========================== */
:root {
    --primary-dark: #040a28;    /* Dark blue background */
    --accent-gold: #F09E00;     /* Gold accent */
    --light-text: #E1E1E1;     /* Light gray text */
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, #040a28 0%, #0a1236 100%);
}

/* ===========================
   GLOBAL STYLES
   =========================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--primary-dark) !important;
    color: var(--light-text) !important;
    font-size: 15px;
    line-height: 1.5;
}

/* Site background and container */
.site-header,
.site-footer,
.site-content {
    background: var(--primary-dark) !important;
}

.ast-container {
    background: var(--primary-dark) !important;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    color: var(--white) !important;
    letter-spacing: -0.02em;
}

h1, .entry-title {
    font-size: 34px !important;
    line-height: 1.2 !important;
}

h2 {
    font-size: 32px !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 24px !important;
    line-height: 1.4 !important;
}

p, .entry-content p {
    color: var(--light-text) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* ===========================
   HEADER STYLES
   =========================== */
.main-header-bar,
.ast-primary-header-bar {
    background: var(--primary-dark) !important;
    border-bottom: 1px solid rgba(241, 158, 0, 0.2) !important;
}

.main-header-menu a,
.ast-header-navigation a {
    color: var(--light-text) !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.main-header-menu a:hover,
.ast-header-navigation a:hover {
    color: var(--accent-gold) !important;
    transform: translateY(-2px);
}

/* Site logo/title */
.site-logo-img,
.custom-logo {
    transition: transform 0.3s ease !important;
}

.site-logo-img:hover,
.custom-logo:hover {
    transform: scale(1.05);
}

/* ===========================
   BUTTONS AND LINKS
   =========================== */
.wp-block-button__link,
.button,
.ast-button,
input[type="submit"],
button {
    background: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(241, 158, 0, 0.3) !important;
}

.wp-block-button__link:hover,
.button:hover,
.ast-button:hover,
input[type="submit"]:hover,
button:hover {
    background: #e89100 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(241, 158, 0, 0.4) !important;
}

/* Link colors */
a {
    color: var(--accent-gold) !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: #e89100 !important;
}

/* ===========================
   CONTENT AREAS
   =========================== */
.entry-content,
.ast-article-post,
.site-main article {
    background: var(--primary-dark) !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    margin-bottom: 2rem !important;
}

/* Featured images and media */
.post-thumb img,
.wp-post-image {
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.post-thumb:hover img,
.wp-post-image:hover {
    transform: scale(1.02);
}

/* ===========================
   SIDEBAR AND WIDGETS
   =========================== */
.secondary .widget,
.widget {
    background: rgba(4, 10, 40, 0.8) !important;
    border: 1px solid rgba(241, 158, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.widget-title,
.widgettitle {
    color: var(--white) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--accent-gold) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

/* ===========================
   FOOTER STYLES
   =========================== */
.ast-footer-overlay {
    background: var(--gradient-bg) !important;
    border-top: 2px solid var(--accent-gold) !important;
}

.site-footer,
.ast-small-footer {
    background: var(--primary-dark) !important;
    color: var(--light-text) !important;
}

.site-footer a {
    color: var(--light-text) !important;
}

.site-footer a:hover {
    color: var(--accent-gold) !important;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    h1, .entry-title {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 26px !important;
    }
    
    h3 {
        font-size: 22px !important;
    }
    
    .entry-content,
    .ast-article-post,
    .site-main article {
        padding: 1.5rem !important;
    }
}

/* ===========================
   HOVER ANIMATIONS AND EFFECTS
   =========================== */
.ast-article-post,
.widget {
    transition: all 0.3s ease !important;
}

.ast-article-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(241, 158, 0, 0.15) !important;
}

/* Form styling */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
    background: rgba(4, 10, 40, 0.8) !important;
    border: 1px solid rgba(241, 158, 0, 0.3) !important;
    color: var(--light-text) !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-family: 'Inter', sans-serif !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 2px rgba(241, 158, 0, 0.2) !important;
    outline: none !important;
}

/* Navigation breadcrumbs */
.ast-breadcrumbs-wrapper {
    background: rgba(4, 10, 40, 0.5) !important;
    padding: 1rem !important;
    border-radius: 6px !important;
    margin-bottom: 2rem !important;
}

.trail-items a {
    color: var(--accent-gold) !important;
}

/* Search form */
.search-form {
    background: rgba(4, 10, 40, 0.8) !important;
    border-radius: 6px !important;
    padding: 1rem !important;
}

/* Custom accent elements */
.accent-element {
    background: var(--gradient-bg) !important;
    border-left: 4px solid var(--accent-gold) !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    border-radius: 4px !important;
}

/* Table styling */
table {
    background: rgba(4, 10, 40, 0.8) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

th {
    background: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
}

td {
    color: var(--light-text) !important;
    border-color: rgba(241, 158, 0, 0.1) !important;
}

/* Loading and transition effects */
* {
    box-sizing: border-box;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}