/**
 * Zenith Widget Replicator - Frontend Styles
 * Modern, clean landing page design that doesn't look like WordPress
 */

/* Reset & Base Styles */
.zwr-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

.zwr-page-wrapper * {
    box-sizing: border-box;
}

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

/* Header / Hero Section */
.zwr-header {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.zwr-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.zwr-header-content {
    position: relative;
    z-index: 2;
}

.zwr-page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zwr-page-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 400;
}

/* View Counter */
.zwr-view-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.875rem;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

.zwr-view-counter svg {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .zwr-page-title {
        font-size: 2rem;
    }
    
    .zwr-page-subtitle {
        font-size: 1rem;
    }
    
    .zwr-header {
        padding: 60px 0 50px;
    }
}

/* Featured Image */
.zwr-featured-image {
    margin: -50px 0 60px;
    position: relative;
    z-index: 10;
}

.zwr-featured-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Main Content */
.zwr-main-content {
    padding: 60px 0;
}

.zwr-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.zwr-article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.zwr-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.zwr-article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 30px 0 15px;
}

.zwr-article-content p {
    margin: 0 0 20px;
}

.zwr-article-content ul,
.zwr-article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.zwr-article-content li {
    margin: 10px 0;
}

/* Widget Container */
.zwr-widget-container {
    margin: 40px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* CTA Section */
.zwr-cta-section {
    margin: 50px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 8px;
    border-left-width: 4px;
    border-left-style: solid;
}

.zwr-cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.zwr-cta-section p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Social Share Section */
.zwr-social-share {
    margin: 40px 0;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.zwr-social-share h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 15px;
}

.zwr-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zwr-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.zwr-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: #ffffff;
}

.zwr-share-twitter {
    background: #000000;
}

.zwr-share-facebook {
    background: #1877f2;
}

.zwr-share-reddit {
    background: #ff4500;
}

/* Affiliate Links Section */
.zwr-affiliates-section {
    margin: 60px 0;
}

.zwr-affiliates-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 30px;
    text-align: center;
}

.zwr-affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.zwr-affiliate-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    border-top-width: 3px;
    border-top-style: solid;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.zwr-affiliate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.zwr-affiliate-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.zwr-affiliate-arrow {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.zwr-affiliate-card:hover .zwr-affiliate-arrow {
    color: #4f46e5;
    transform: translateX(4px);
}

/* Footer */
.zwr-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 40px 0;
    margin-top: 80px;
}

.zwr-footer-content {
    text-align: center;
}

.zwr-footer-content p {
    margin: 10px 0;
}

.zwr-footer-category {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zwr-container {
        padding: 0 15px;
    }
    
    .zwr-main-content {
        padding: 40px 0;
    }
    
    .zwr-article-content {
        font-size: 1rem;
    }
    
    .zwr-article-content h2 {
        font-size: 1.5rem;
    }
    
    .zwr-affiliate-grid {
        grid-template-columns: 1fr;
    }
    
    .zwr-widget-container {
        padding: 20px;
    }
}

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

.zwr-article {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll to Top Button */
.zwr-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zwr-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.zwr-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.zwr-scroll-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .zwr-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Print styles */
@media print {
    .zwr-scroll-top {
        display: none;
    }
}
