/*
Theme Name: Gold Compass Daily Child
Theme URI: https://goldcompassdaily.com
Description: Professional financial news theme for Gold Compass Daily - Child theme of Astra
Author: Gold Compass Daily
Author URI: https://goldcompassdaily.com
Template: astra
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: gold-compass-child
*/

/* ========================================
   GLOBAL STYLES
   ======================================== */

body {
    font-family: Georgia, 'Times New Roman', serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.8;
}

.site-header {
    background: #1a3a52 !important;
    border-bottom: 3px solid #FFD700 !important;
}

.site-title,
.site-description {
    color: white !important;
}

.main-header-bar-wrap {
    background: #1a3a52 !important;
}

/* ========================================
   CUSTOM HEADER
   ======================================== */

.custom-header {
    background: #1a3a52;
    color: white;
    padding: 1rem 0;
    border-bottom: 3px solid #FFD700;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a3a52;
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.logo-text p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #FFD700 !important;
}

/* ========================================
   LIVE TICKER
   ======================================== */

.live-ticker {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0.75rem 0;
}

.ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 3rem;
    overflow-x: auto;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.ticker-label {
    font-weight: 600;
    color: #666;
}

.ticker-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.ticker-change {
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.ticker-change.positive {
    color: #22c55e;
    background: #f0fdf4;
}

.ticker-change.negative {
    color: #ef4444;
    background: #fef2f2;
}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */

.home-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

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

/* Hero Article */
.hero-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
}

.hero-category {
    color: #FFD700;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 2rem;
    margin: 1rem 0;
    color: #1a3a52;
    line-height: 1.3;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover {
    color: #FFD700;
}

.hero-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-excerpt {
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more-button {
    display: inline-block;
    background: #1a3a52;
    color: white !important;
    padding: 0.75rem 2rem;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.read-more-button:hover {
    background: #FFD700;
    color: #1a3a52 !important;
}

/* Sidebar */
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFD700;
}

.tradingview-widget-container {
    min-height: 300px;
}

.telegram-cta-widget {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.telegram-cta-widget h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.telegram-cta-widget p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.telegram-button {
    display: inline-block;
    background: white;
    color: #0088cc !important;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
}

/* Latest Articles Section */
.latest-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1a3a52;
}

.section-title {
    font-size: 1.8rem;
    color: #1a3a52;
    margin: 0;
}

.view-all-link {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

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

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-category {
    color: #FFD700;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.article-card-title {
    font-size: 1.1rem;
    margin: 0.75rem 0;
    color: #1a3a52;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
}

.article-card-title a:hover {
    color: #FFD700;
}

.article-card-meta {
    color: #666;
    font-size: 0.85rem;
}

/* ========================================
   SINGLE POST STYLES
   ======================================== */

.single-post-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
}

.single-post-wrapper {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-category-badge {
    display: inline-block;
    background: #FFD700;
    color: #1a3a52;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    color: #1a3a52;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta-info {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Key Levels Box */
.key-levels-box {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.key-levels-box h3 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.level-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #bae6fd;
}

.level-label {
    font-weight: 600;
    color: #0369a1;
}

.level-value {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content h2 {
    color: #1a3a52;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content strong {
    color: #1a3a52;
}

/* Chart Section */
.chart-section {
    margin: 2.5rem 0;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.chart-title {
    font-size: 1.2rem;
    color: #1a3a52;
    margin-bottom: 1rem;
    font-weight: 600;
}

.chart-container {
    background: white;
    min-height: 500px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Trade Setup Box */
.trade-setup-box {
    background: #fefce8;
    border-left: 4px solid #eab308;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.trade-setup-box h3 {
    color: #854d0e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.setup-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 4px;
}

.setup-label {
    font-size: 0.85rem;
    color: #854d0e;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.setup-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1a3a52;
}

/* Disclaimer */
.disclaimer-box {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #991b1b;
}

/* Related Articles */
.related-articles-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.related-title {
    font-size: 1.5rem;
    color: #1a3a52;
    margin-bottom: 1.5rem;
}

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

.related-card {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card-content {
    padding: 1rem;
}

.related-card-title {
    font-size: 1rem;
    color: #1a3a52;
    margin-bottom: 0.5rem;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #FFD700;
}

.related-card-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Telegram CTA in Posts */
.post-telegram-cta {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.post-telegram-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.post-telegram-cta p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.telegram-button-large {
    display: inline-block;
    background: white;
    color: #0088cc !important;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.telegram-button-large:hover {
    transform: scale(1.05);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #1a3a52 !important;
    color: white !important;
    padding: 3rem 0 1rem !important;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    opacity: 0.8;
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .ticker-container {
        justify-content: flex-start;
    }
    
    .articles-grid,
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .single-post-wrapper {
        padding: 1.5rem;
    }
    
    .setup-grid,
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ========================================
   SINGLE POST WITH SIDEBAR - ADD TO style.css
   ======================================== */

/* Single Post Grid Layout */
.single-post-container-with-sidebar {
   max-width: 1200px !important;
    margin: 2rem auto !important;
    padding: 0 20px !important;
}

.single-post-grid {
      display: grid !important;
    grid-template-columns: 1fr 350px !important;
    gap: 2rem !important;
}

.single-post-main {
    min-width: 0; /* Prevents overflow */
}

/* Sidebar Styles */
.single-post-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
}

/* Sidebar Latest Posts */
.sidebar-latest-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post-thumb:hover img {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: #1a3a52;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title a:hover {
    color: #FFD700;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        order: -1; /* Move sidebar above content on mobile */
    }
}

@media (max-width: 768px) {
    .single-post-container-with-sidebar {
        padding: 0 15px;
    }
    
    .sidebar-post-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   ASTRA OVERRIDES
   ======================================== */

/* Remove Astra default header styles */
.site .site-header {
    padding: 0 !important;
}

.ast-container {
    max-width: 1200px;
}

/* Remove default margins */
.ast-single-post .entry-header {
    margin-bottom: 0;
}

.entry-content {
    margin: 0;
}
