/* Advanced Styles for AI Affiliate Pro Theme */

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

/* Navigation Enhancements */
nav ul li a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: #edf2f7;
    color: #3182ce;
}

/* Card Hover Effects */
.affiliate-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.affiliate-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.cta-button {
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(66, 153, 225, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.rating span {
    background: #fef3c7;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #92400e;
}

/* Comparison Table Styles */
.comparison-table table {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.comparison-table tr:nth-child(even) {
    background: #f7fafc;
}

.comparison-table td {
    vertical-align: middle;
}

/* CTA Box Styles */
.cta-box {
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

/* Pros & Cons Styles */
.pros-cons {
    margin: 30px 0;
}

.pros, .cons {
    transition: all 0.3s ease;
}

.pros:hover, .cons:hover {
    transform: translateY(-4px);
}

.pros ul li::before,
.cons ul li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 8px;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3182ce;
}

/* Featured Image */
.featured-image {
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Entry Meta */
.entry-meta {
    color: #718096;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Tags */
.tags-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tags-list a {
    display: inline-block;
    background: #edf2f7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tags-list a:hover {
    background: #3182ce;
    color: #fff;
    text-decoration: none;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quick Summary */
.quick-summary {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer Enhancements */
footer a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

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

.footer-widget-area h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-widget-area ul {
    list-style: none;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 12px 25px;
    background: #3182ce;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: #2b6cb0;
}

/* Pagination */
.posts-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    gap: 20px;
}

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

.nav-previous a, .nav-next a {
    display: block;
    padding: 15px 20px;
    background: #edf2f7;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

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

/* Responsive Grid for Archive */
@media (max-width: 1024px) {
    .main-wrapper {
        gap: 30px;
    }
    
    aside {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    
    .main-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    aside {
        width: 100%;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 10px !important;
    }
    
    .cta-box {
        padding: 25px !important;
    }
    
    .pros-cons {
        grid-template-columns: 1fr !important;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .posts-navigation {
        flex-direction: column;
    }
    
    nav {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    
    .container {
        padding: 0 15px;
    }
    
    .affiliate-card {
        padding: 15px !important;
    }
    
    .cta-button {
        padding: 10px 20px !important;
        font-size: 14px;
    }
}

/* Floating Action Button (FAB) for Mobile */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .floating-cta {
        display: block;
    }
}

/* Sticky Sidebar */
@media (min-width: 1025px) {
    aside {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* Coupon Box Styles */
.coupon-box {
    transition: transform 0.2s ease;
}

.coupon-box:hover {
    transform: translateY(-2px);
}

.coupon-box [data-copy-link]:active {
    background: #edf2f7 !important;
}

/* Pricing Table Enhancements */
.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Table of Contents Widget */
.widget_toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
}

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

.widget_toc li {
    margin-bottom: 8px;
}

.widget_toc a {
    color: #4a5568;
    font-size: 14px;
}

.widget_toc a:hover {
    color: #3182ce;
}
