/* Custom Styles for OfferDispose Theme */

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Header Enhancements */
.site-header {
    background: linear-gradient(to right, #fff 0%, #f9f9f9 100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.nav-menu a {
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Hero Section Enhancements */
.hero-section {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    overflow: hidden;
}

.hero-image img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Hover Effects */
.card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

/* Button Styles */
.btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Rating Stars */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star {
    font-size: 1.2rem;
    color: #ffc107;
}

.star.empty {
    color: #ddd;
}

/* Sidebar Sticky */
.sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

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

/* Responsive Tables */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Pros and Cons Styling */
.pros, .cons {
    border-left: 4px solid #4caf50;
}

.cons {
    border-left-color: #f44336;
}

/* Blog Post Styling */
.blog-post {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-content h2 {
    border-bottom: 2px solid #0066cc;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    color: #0066cc;
}

/* Related Posts Section */
.related-products,
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

/* Footer Styling */
.site-footer {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
}

.footer-section a {
    position: relative;
}

.footer-section a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff9800;
    transition: width 0.3s ease;
}

.footer-section a:hover:after {
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .header-right {
        gap: 1.5rem;
    }
    
    .search-box input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .site-navigation {
        width: 100%;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-form {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    
    .search-box input {
        width: 100%;
        flex: 1;
    }
    
    .hero-section .container {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        top: auto;
        max-height: none;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 0.5rem;
    }
    
    .site-branding a,
    .site-title {
        font-size: 1.25rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .search-box input {
        font-size: 0.9rem;
    }
    
    .search-box button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .search-box {
        display: none;
    }
    
    .site-content {
        max-width: 100%;
    }
}
