/*
Theme Name: Rising
Theme URI: https://example.com/rising
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme based on modern casino review sites, featuring clean layouts, editable author sections, and customizable color schemes.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rising
Tags: blog, custom-colors, custom-menu, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready

Rising WordPress Theme, Copyright 2026
Rising is distributed under the terms of the GNU GPL
*/

/* ===================================
   CSS VARIABLES
   =================================== */

:root {
    /* Colors */
    --primary-color: #1a73e8;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --text-light: #80868b;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #dadce0;
    --link-color: #1a73e8;
    --link-hover: #174ea6;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

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

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

/* ===================================
   LAYOUT
   =================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.content-area {
    flex: 1;
}

/* Two Column Layout */
.site-main .site-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.site-main .content-area {
    flex: 1;
    min-width: 0;
}

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

.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

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

.site-description {
    display: none;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 0;
}

.main-navigation a:hover {
    color: var(--link-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Animation when toggled */
.main-navigation.toggled .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.main-navigation.toggled .hamburger-line:nth-child(2) {
    opacity: 0;
}

.main-navigation.toggled .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===================================
   POSTS & PAGES
   =================================== */

.hentry {
    margin-bottom: 32px;
}

/* Entry Header */
.entry-header {
    margin-bottom: 16px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--text-dark);
}

/* Compact Author Meta */
.entry-meta-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.author-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-line img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.update-line {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.update-line strong {
    font-weight: 500;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 24px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Entry Content */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-dark);
}

.entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-dark);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* ===================================
   AUTHOR ARCHIVE PAGE
   =================================== */

.author-header {
    background-color: var(--bg-light);
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.author-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.author-header-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
}

.author-header-info {
    flex: 1;
}

.author-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0 0 8px;
    text-transform: lowercase;
}

.author-post-count {
    font-size: 0.875rem;
    color: var(--text-dark);
}

.author-post-count strong {
    font-weight: 600;
}

.author-bio-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-dark);
}

.author-bio-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin: 0;
}

/* Author Posts Grid */
.author-posts-section {
    margin-top: 32px;
}

.author-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.author-post-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.author-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.author-post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.author-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-post-item:hover .author-post-thumbnail img {
    transform: scale(1.05);
}

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

.author-post-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.author-post-title a {
    color: var(--text-dark);
}

.author-post-title a:hover {
    color: var(--link-color);
}

.author-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.author-post-author {
    font-weight: 500;
}

.no-posts-message {
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 24px;
}

.no-posts-message p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin: 0;
}

/* ===================================
   SIDEBAR
   =================================== */

.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.widget a {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.widget a:hover {
    color: var(--link-color);
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--bg-white);
}

.pagination .current {
    background: var(--link-color);
    color: var(--bg-white);
    border-color: var(--link-color);
}

.pagination a:hover {
    background: var(--bg-light);
}

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

.site-footer {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-widget .widget-title {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-widget a {
    color: var(--bg-light);
}

.footer-widget a:hover {
    color: var(--bg-white);
}

.site-info {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===================================
   COMMENTS
   =================================== */

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    float: left;
    margin-right: 16px;
}

.comment-metadata {
    font-size: 0.8125rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.comment-content {
    clear: both;
    padding-top: 8px;
}

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

@media (max-width: 992px) {
    .site-main .site-container {
        flex-direction: column;
    }
    
    .widget-area {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header .site-container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        position: static;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 16px 0 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin: 0;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
        padding: 0 24px;
    }
    
    .main-navigation a {
        display: block;
        padding: 12px 0;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .update-line {
        margin-left: 0;
    }
    
    .author-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 2.5em;
    z-index: 999999999;
    text-decoration: underline;
}

.skip-link:focus {
    display: block;
    left: 6px;
    top: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 15px 23px 14px;
    z-index: 100000;
    right: auto;
}

/* ===================================
   UTILITIES
   =================================== */

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-top: 8px;
    text-align: center;
}

.sticky {
    /* Styles for sticky posts */
}

.bypostauthor {
    /* Styles for post author comments */
}
