/*
Theme Name: trsanaltur.com
Theme URI: http://trsanaltur.com
Author: Auto Generated
Description: Diverse and stylish WordPress theme for trsanaltur.com with a sidebar layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trsanaltur.com
Tags: blog, modern, responsive, stylish, generated
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #D97706;
    --secondary-color: #E8AD69;
    --background-color: #FFFBEB;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
}

/* Header styling */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}
header .site-title {
    margin: 0;
    font-family: var(--header-font);
    font-size: 2.5rem;
}
header .site-description {
    margin-top: 10px;
    font-size: 1.2rem;
    opacity: 0.85;
}
/* Navigation menu */
.primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 35px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.primary-menu li {
    margin: 0 15px;
    position: relative;
}
.primary-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}
.primary-menu a:hover {
    opacity: 0.8;
}

/* Dropdown menu styles */
.primary-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(217, 119, 6, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1000;
    padding: 10px 0;
    margin: 0;
    flex-direction: column;
}

.primary-menu ul ul li {
    margin: 0;
    display: block;
    width: 100%;
}

.primary-menu ul ul a {
    display: block;
    padding: 6px 12px;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.primary-menu ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateX(5px);
}

.primary-menu ul ul li:last-child a {
    border-bottom: none;
}

/* Show dropdown on hover */
.primary-menu li:hover > ul {
    display: block;
}

/* Nested dropdown positioning */
.primary-menu ul ul ul {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

/* Container & layout */
.content-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Main content area */
.content-wrapper > *:first-child {
    min-width: 0; /* Prevents grid item from overflowing */
}

/* Posts container */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Post cards */
.post-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.08);
    padding: 35px;
    margin-bottom: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.2);
}

.post-card h2.entry-title {
    margin: 0 0 20px 0;
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
}

.post-card h2.entry-title a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.post-card h2.entry-title a:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-card .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
}

/* Read more button */
.read-more {
    margin-top: 25px;
    text-align: right;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
}

.read-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.read-more-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
    color: #fff;
    text-decoration: none;
}

.read-more-link:hover::before {
    left: 100%;
}

/* Navigation styles */
.navigation.posts-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 15px;
    width: 100%;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 50px;
}

.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
    color: #fff;
    text-decoration: none;
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    left: 100%;
}

/* Navigation arrows */
.nav-previous a::after {
    content: '←';
    margin-right: 8px;
    font-size: 1.1rem;
}

.nav-next a::after {
    content: '→';
    margin-left: 8px;
    font-size: 1.1rem;
}

/* Sidebar styles */
#secondary {
    font-size: 0.9rem;
}
#secondary .widget {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
#secondary .widget h2 {
    margin-top: 0;
    font-family: var(--header-font);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Sidebar lists */
.recent-posts-list,
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li,
.categories-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.recent-posts-list li:last-child,
.categories-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a,
.categories-list a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.recent-posts-list a:hover,
.categories-list a:hover {
    color: var(--primary-color);
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}
.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-menu li {
    margin: 0 12px;
}
.footer-menu a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer-menu a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    header .site-title { font-size: 2rem; }
    .primary-menu ul { flex-direction: column; align-items: center; }
    .primary-menu li { margin: 10px 0; }
    .content-wrapper { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    /* Mobile posts container */
    .posts-container {
        gap: 20px;
    }
    
    /* Mobile post cards */
    .post-card {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 12px;
    }
    
    .post-card h2.entry-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .post-card .entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .read-more-link {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Mobile navigation */
    .navigation.posts-navigation {
        margin-top: 30px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-previous a,
    .nav-next a {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    /* Mobile dropdown adjustments */
    .primary-menu ul ul {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 4px;
        margin: 5px 0;
        padding: 5px 0;
        min-width: auto;
        width: 100%;
    }
    
    .primary-menu ul ul a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .primary-menu ul ul ul {
        left: auto;
        margin-left: 20px;
    }
}

/* Logo style variation 1 */
.site-title a {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

/* Contrast logo style B */
.site-title a {
    color: var(--primary-color);
    background-color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 800;
    border: 3px solid var(--primary-color);
    text-decoration: none;
}
