/*
Theme Name: RRS Theme
Theme URI: https://ridingrisingsun.com
Description: Custom magazine-style theme for Riding Rising Sun motorcycle blog
Version: 1.0
Author: James
*/

/* Color Scheme from Logo */
:root {
    --color-primary: #2d3e50;      /* Dark blue-grey */
    --color-secondary: #a0524f;    /* Rust red */
    --color-accent: #e8dcc4;       /* Cream/tan */
    --color-text: #333333;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
}

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

body {
    font-family: 'Georgia', serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light);
}

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

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

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

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

/* Header */
.site-header {
    background-color: var(--color-primary);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.site-logo img {
    max-width: 150px;
    height: auto;
}

.custom-logo {
    max-width: 150px;
    height: auto;
}

.custom-logo-link img {
    max-width: 150px;
    height: auto;
}

.site-title-wrap {
    text-align: left;
}

.site-title {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin: 0 0 5px 0;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 2px;
}

.site-title a {
    color: var(--color-accent);
}

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

.site-description {
    color: var(--color-accent);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
}

/* Navigation */
.main-navigation {
    background-color: var(--color-secondary);
    padding: 15px 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: var(--color-accent);
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Main Content Area */
.site-content {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-area {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 5px;
}

/* Featured Posts Section */
.featured-posts {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--color-secondary);
}

.featured-posts h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-left: 5px solid var(--color-secondary);
    padding-left: 15px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-post {
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.featured-post-content {
    padding: 20px;
}

.featured-post h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-post .excerpt {
    color: var(--color-text);
    margin-bottom: 15px;
}

.read-more {
    color: var(--color-secondary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Latest Posts */
.latest-posts h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-left: 5px solid var(--color-secondary);
    padding-left: 15px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

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

.post-card-content {
    padding: 20px;
}

.post-card h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 5px;
}

.widget {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-accent);
}

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

.widget h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.widget ul {
    list-style: none;
}

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

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-accent);
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.site-footer a {
    color: var(--color-accent);
}

/* Single Post */
.single-post-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 5px;
}

.single-post-content h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.single-post-content .post-meta {
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-accent);
}

.single-post-content img {
    margin: 20px 0;
    border-radius: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .featured-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-navigation li {
        margin: 5px 0;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
}
