/*
Theme Name: ACTRA
Theme URI: https://github.com/your-username/actra-wordpress-theme
Author: ACTRA Development Team
Author URI: https://actra.org
Description: A custom WordPress theme built on the Gantry 5 framework. This theme provides a flexible foundation for building modern, responsive websites with powerful customization options.
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: actra
Tags: gantry, gantry5, responsive-layout, custom-menu, featured-images, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* 
 * ACTRA Theme Styles
 * Base styles for the theme
 * Gantry 5 styles can be added in gantry/scss/ or css/ directories
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

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: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
    text-decoration: underline;
}

/* ========================================
   Layout
   ======================================== */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    width: 100%;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    min-height: 60vh;
}

@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .widget-area {
        position: static;
    }
}

/* ========================================
   Header
   ======================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
    text-decoration: none;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* ========================================
   Navigation
   ======================================== */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.menu-toggle:hover {
    background: #005177;
}

#primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    margin: 0;
}

#primary-menu a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

#primary-menu a:hover {
    color: #0073aa;
    text-decoration: none;
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
    max-width: 800px;
    margin: 0 auto;
}

.posts-container {
    display: grid;
    gap: 3rem;
}

article {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: #1a1a1a;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.read-more {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005177;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Sidebar
   ======================================== */
.widget-area {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

#footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#footer-menu a {
    color: #ccc;
}

#footer-menu a:hover {
    color: #fff;
}

.site-info p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

/* ========================================
   Pagination
   ======================================== */
.posts-navigation,
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #005177;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   No Posts
   ======================================== */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts h2 {
    color: #666;
    margin-bottom: 1rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .site-header .site-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    #primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background: #fff;
        padding: 1rem;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    #primary-menu.active {
        display: flex;
    }
    
    .site-main {
        padding: 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .entry-title {
        font-size: 1.5rem;
    }
}

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

.skip-link:focus {
    clip: auto;
    height: auto;
    width: auto;
    position: absolute;
    left: 6px;
    top: 7px;
    z-index: 100000;
    background: #fff;
    padding: 0.5rem 1rem;
    border: 2px solid #0073aa;
}

