/*
Theme Name: Medya Radar
Theme URI: http://medyaradar.net/
Author: Your Name
Author URI: http://yourwebsite.com/
Description: A WordPress theme based on medyaradar.net design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medyaradar
Tags: news, blog, custom-background, custom-logo, custom-menu, featured-images
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #d32f2f;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: #222;
    color: #fff;
    padding: 5px 0;
    font-size: 14px;
}

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

.date-time {
    font-weight: 400;
}

.market-data {
    display: flex;
    gap: 15px;
}

.market-item {
    display: flex;
    align-items: center;
}

.market-item.up::after {
    content: "▲";
    color: #4caf50;
    margin-left: 5px;
}

.market-item.down::after {
    content: "▼";
    color: #f44336;
    margin-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
}

.weather {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-width: 200px;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-description {
    font-size: 14px;
    margin: 5px 0 0;
    color: #666;
}

/* Main Navigation */
.main-navigation {
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    color: #333;
    padding: 15px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
}

.main-menu a:hover {
    color: #d32f2f;
    text-decoration: none;
}

.main-menu .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu a {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-transform: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Search and Menu Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon, .menu-icon {
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

/* Breaking News */
.breaking-news {
    background-color: #d32f2f;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
}

.breaking-news-label {
    background-color: #d32f2f;
    color: #fff;
    font-weight: 700;
    padding: 5px 15px;
    margin-right: 15px;
    white-space: nowrap;
}

.breaking-news-content {
    overflow: hidden;
}

.breaking-news-item {
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Featured Slider */
.featured-slider {
    margin-bottom: 30px;
    position: relative;
}

.featured-slide {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.featured-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.featured-slide-title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.featured-slide-meta {
    font-size: 12px;
    opacity: 0.8;
}

.featured-slider-nav {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.featured-slider-nav-item {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-bottom: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

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

.news-card-content {
    padding: 15px;
}

.news-card-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-card-meta {
    font-size: 12px;
    color: #888;
}

/* Single Post */
.single-post-header {
    margin-bottom: 20px;
}

.single-post-title {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.single-post-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.single-post-featured-image {
    margin-bottom: 20px;
}

.single-post-content {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
    margin-bottom: 20px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 30px 0 15px;
    font-weight: 700;
}

/* Sidebar */
.widget-area {
    margin-bottom: 30px;
}

.widget {
    background-color: #fff;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d32f2f;
    font-weight: 700;
    position: relative;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget li:last-child {
    border-bottom: none;
}

/* Popular Posts Widget */
.popular-posts-widget .post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-posts-widget .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts-widget .post-thumbnail {
    width: 80px;
    height: 60px;
    margin-right: 10px;
    flex-shrink: 0;
}

.popular-posts-widget .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-posts-widget .post-content {
    flex-grow: 1;
}

.popular-posts-widget .post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    display: block;
}

.popular-posts-widget .post-date {
    font-size: 12px;
    color: #888;
}

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    font-weight: 700;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: 5px 0;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 0 0;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 14px;
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.page-numbers.current {
    background-color: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.page-numbers:hover {
    background-color: #f5f5f5;
}

/* Search Form */
.search-form {
    display: flex;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    padding: 0 10px;
    color: #888;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        z-index: 100;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu .sub-menu {
        position: static;
        box-shadow: none;
        width: 100%;
    }
    
    .main-menu .sub-menu a {
        padding-left: 30px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .featured-slide-title {
        font-size: 20px;
    }
    
    .featured-slide img {
        height: 300px;
    }
}

/* Custom Colors */
.bg-red {
    background-color: #d32f2f;
}

.text-red {
    color: #d32f2f;
}

.border-red {
    border-color: #d32f2f;
}

/* Special Elements */
.special-label {
    display: inline-block;
    background-color: #d32f2f;
    color: #fff;
    padding: 5px 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.numbered-nav {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.numbered-nav-item {
    background-color: #333;
    color: #fff;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.numbered-nav-item.active {
    background-color: #d32f2f;
}