/*
Theme Name: Drublic Theme
Description: Custom CSS styles
Version: 1.0.0
*/

/* ==========================================================================
   Header Styles
   ========================================================================== */
/*
.site-header {
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
*/
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    flex-shrink: 0;
}

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

.site-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Logo */
.custom-logo-link {
    display: block;
    max-width: 200px;
}

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

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.main-navigation {
    flex: 1;
}

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

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: var(--transition-base);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--color-secondary);
}

/* Submenu */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 0.5rem 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.menu-toggle-icon::before {
    content: '☰';
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-search,
.header-cart,
.header-account {
    position: relative;
}

.search-toggle,
.cart-icon,
.account-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-base);
}

.search-toggle:hover,
.cart-icon:hover,
.account-icon:hover {
    color: var(--color-secondary);
}

.cart-count {
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-form-wrapper {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.search-form-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.site-content {
    padding: 3rem 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.no-sidebar .content-area {
    grid-template-columns: 1fr;
}

.site-main {
    min-width: 0;
}

/* ==========================================================================
   Posts & Pages
   ========================================================================== */

article {
    margin-bottom: 3rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

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

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

.entry-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-secondary);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
    position: sticky;
    top: calc(var(--header-height, 80px) + 2rem);
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
}

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

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: var(--color-text);
    text-decoration: none;
}

.widget ul li a:hover {
    color: var(--color-secondary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-base);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-primary);
    color: #fff;
    margin-top: auto;
}

.footer-widgets {
    padding: 3rem 0;
}

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

.footer-widget-column .widget {
    background: transparent;
    padding: 0;
}

.footer-widget-column .widget-title {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-widget-column .widget ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-column .widget ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

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

.site-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-navigation .footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.footer-navigation .footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius-lg);
}

.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-author {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.comment-content {
    margin-bottom: 1rem;
}

.reply {
    font-size: 0.875rem;
}

.reply a {
    color: var(--color-secondary);
    text-decoration: none;
}

.children {
    list-style: none;
    padding-left: 2rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form {
    position: relative;
    display: flex;
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
}

.search-form button {
    margin-left: 0.5rem;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 6rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: var(--spacing-sm); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-lg); }
