/*
Theme Name: Agencia DWOne
Description: Tema personalizado desenvolvido pela Agencia DWOne
Version: 1.0
Author: Agencia DWOne
Author URI: https://agenciadwone.com
Text Domain: agenciadwone
*/

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

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

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Content */
.site-content {
    padding: 2rem 0;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-nav {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

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

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

.entry-header {
    padding: 1.5rem 1.5rem 0;
}

.entry-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

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

.entry-title a:hover {
    color: #007cba;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    padding: 0 1.5rem 1rem;
}

.entry-footer {
    padding: 0 1.5rem 1.5rem;
}

.read-more {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #005a87;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-meta {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.single-post .entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin: 2rem 0 1rem;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.search-submit {
    padding: 0.75rem 1rem;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post .entry-title {
        font-size: 2rem;
    }
}

/* ===================================
   CASES STYLES
   =================================== */

/* Single Case Styles */
.cs-single-case-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cs-case-featured-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.cs-case-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cs-case-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.cs-case-content h2,
.cs-case-content h3,
.cs-case-content h4 {
    margin: 2rem 0 1rem;
    color: #222;
}

.cs-case-content p {
    margin-bottom: 1.5rem;
}

.cs-case-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cs-case-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.cs-case-date i {
    color: #007cba;
}

/* Sidebar Styles */
.cs-sidebar {
    position: sticky;
    top: 2rem;
}

.cs-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cs-widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #222;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.cs-related-case {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cs-related-case:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cs-related-case-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.cs-related-case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-related-case-content h6 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cs-related-case-content h6 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cs-related-case-content h6 a:hover {
    color: #007cba;
}

.cs-related-case-content .cs-case-date {
    font-size: 0.8rem;
    color: #999;
}

/* Cases Grid Improvements */
.cs-blog-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.cs-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cs-blog-img img {
    transition: transform 0.3s ease;
}

.cs-blog-item:hover .cs-blog-img img {
    transform: scale(1.05);
}

/* Responsive for Cases */
@media (max-width: 768px) {
    .cs-single-case-content {
        padding: 1rem;
    }
    
    .cs-case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cs-related-case {
        flex-direction: column;
        text-align: center;
    }
    
    .cs-related-case-img {
        width: 100%;
        height: 120px;
    }
} 