/*
Theme Name: YERENWG
Theme URI: https://yerenwg.store
Author: YERENWG Team
Author URI: https://yerenwg.store
Description: A G2-inspired software review platform theme for YERENWG
Version: 1.0.0
License: GPL v2 or later
Text Domain: yerenwg
*/

/* CSS Reset & Variables */
:root {
    --primary: #ff492c;
    --primary-dark: #e63e24;
    --secondary: #1a1a2e;
    --dark: #0f0f1a;
    --light: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--light);
}

/* Header Styles */
.site-header {
    background: var(--light);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--secondary);
    color: var(--light);
    padding: 8px 0;
    font-size: 14px;
}

.header-top a {
    color: var(--light);
    text-decoration: none;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo a {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
}

.site-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 32px;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.header-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 22px;
    color: var(--gray-400);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
}

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

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 15px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Categories Section */
.section {
    padding: 64px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

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

.category-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.category-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* Software Cards */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.software-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.software-card:hover {
    box-shadow: var(--shadow-lg);
}

.software-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.software-logo {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary);
}

.software-info {
    flex: 1;
}

.software-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.software-info h3 a {
    color: var(--secondary);
    text-decoration: none;
}

.software-info h3 a:hover {
    color: var(--primary);
}

.software-category {
    font-size: 13px;
    color: var(--gray-600);
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffc107;
    font-size: 16px;
}

.star.empty {
    color: var(--gray-300);
}

.rating-score {
    font-weight: 700;
    color: var(--secondary);
}

.rating-count {
    font-size: 13px;
    color: var(--gray-500);
}

.software-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.software-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.software-price {
    font-size: 14px;
    color: var(--gray-600);
}

.software-price .price {
    font-weight: 700;
    color: var(--secondary);
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.review-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff7b59);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.reviewer-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
}

.reviewer-details p {
    font-size: 13px;
    color: var(--gray-500);
}

.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.review-rating .stars {
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: var(--gray-500);
}

.review-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}

.review-content p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
}

.review-software {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-software-logo {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--secondary);
}

.review-software-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

/* Pros/Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.pros, .cons {
    font-size: 13px;
}

.pros h5 {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cons h5 {
    color: var(--danger);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    color: var(--gray-600);
}

.pros li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.cons li::before {
    content: "−";
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: var(--gray-100);
    padding: 80px 24px;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.cta-section p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* Footer */
.site-footer {
    background: var(--secondary);
    color: var(--gray-400);
    padding: 64px 24px 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 48px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Single Software Page */
.software-hero {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 40px 24px;
}

.software-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
}

.software-hero-logo {
    width: 120px;
    height: 120px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary);
}

.software-hero-info {
    flex: 1;
}

.software-hero-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--secondary);
}

.software-hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.software-hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Rating Breakdown */
.rating-breakdown {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-bar-label {
    width: 60px;
    font-size: 14px;
    color: var(--gray-600);
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.rating-bar-count {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: var(--gray-500);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 24px 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--gray-700);
    background: white;
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--secondary);
}

.page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 20px;
    font-weight: 600;
}

.page-numbers.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navigation Links (Older/Newer Posts) */
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
}

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

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .software-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .software-hero-meta {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
