/*
Theme Name:  Dart Theme
Description: A professional WordPress theme for casino news, reviews, and gaming content. Inspired by Webopedia's design with modern features and responsive layout.
Version: 1.0.0
Author: Dart Developer
Author URI: https://example.com
Text Domain: casino-theme
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, entertainment, casino, gaming, reviews, responsive, custom-post-types

Casino News Theme, Copyright 2024
Casino News Theme is distributed under the terms of the GNU GPL.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/

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

/* CSS Variables */
:root {
    --primary-color: #4b86d2;
    --primary-dark: #4b86d2;
    --secondary-color: #182977;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f8fafc;
    --background-gray: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

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

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: white;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.search-toggle:hover {
    background-color: rgba(255,255,255,0.2);
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
}

.site-title a:hover {
    color: var(--primary-dark);
}

.site-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.primary-menu a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    position: relative;
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

.header-cta .cta-button {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.header-cta .cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

/* Main Content Layout */
.main-content-wrapper {
    background: var(--white);
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.main-content-column {
    min-width: 0;
}

/* Editor's Choice Section */
.editors-choice-section {
    margin-bottom: 60px;
}

.section-badge {
    margin-bottom: 20px;
}

.badge-text {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editors-choice-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-article {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.article-content .article-meta {
    margin-bottom: 15px;
}

.read-time {
    background: var(--background-gray);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0;
    color: var(--text-primary);
}

.article-title a {
    color: inherit;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 15px 0;
}

.article-author {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Placeholder Images */
.placeholder-image,
.placeholder-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.placeholder-image {
    height: 250px;
    font-size: 18px;
}

.placeholder-image.large {
    height: 200px;
}

.placeholder-thumb {
    height: 80px;
    font-size: 24px;
    width: 80px;
}

.placeholder-image i,
.placeholder-thumb i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.placeholder-thumb i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Gradient variations for different content types */
.placeholder-thumb.crypto {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.placeholder-thumb.games {
    background: linear-gradient(135deg, #10b981, #059669);
}

.placeholder-thumb.popular {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.placeholder-image.games {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Side Articles */
.side-articles {
    background: var(--background-gray);
    padding: 30px;
    border-radius: var(--border-radius-lg);
}

.side-article {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.side-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-article:first-child {
    padding-top: 0;
}

.side-article-content {
    flex: 1;
}

.side-article .article-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category-badge.crypto-trading {
    background: var(--accent-color);
}

.side-article .article-title {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
}

.side-article .article-title a {
    color: var(--text-primary);
}

.side-article-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.side-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .editors-choice-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .primary-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .header-main-content {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* WordPress specific styles */
.wp-block-image {
    margin: 0 0 1em 0;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1em;
    margin: 1em 0;
}

/* WordPress alignment classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}