/* Clean Tech OS - Independent Software Review Site */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

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

:root {
    --primary-green: #10B981;
    --dark-green: #047857;
    --light-green: #D1FAE5;
    --accent-green: #059669;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-900: #111827;
    --border-gray: #e5e7eb;
    --border-green: #A7F3D0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-optical-sizing: auto;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.site-logo:hover {
    color: var(--dark-green);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 1rem 0;
    background: var(--bg-gray-50);
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb-nav a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-nav span {
    color: var(--text-light);
}

/* Hero & Page Headers */
.page-hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

/* Content Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 4rem 0;
}

.article-content {
    max-width: 850px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 3.5rem 0 1.5rem 0;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.article-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2.5rem 0 1.25rem 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-content p {
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content ul, .article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* Enhanced Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--border-green) 100%);
    color: var(--dark-green);
    font-weight: 600;
    text-align: left;
    padding: 1.5rem;
    border-bottom: 2px solid var(--primary-green);
    font-size: 1rem;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    vertical-align: top;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.comparison-table tr:hover td {
    background-color: var(--bg-gray-50);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-name {
    font-weight: 600;
    width: 25%;
    background: var(--bg-gray-50);
    color: var(--text-dark);
}

/* Enhanced Cards & Boxes */
.info-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.winner-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.pros-cons-item {
    background: var(--bg-gray-50);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-gray);
}

.pros-cons-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros-cons-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-item li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.pros-cons-item .pros li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.pros-cons-item .cons li::before {
    content: "❌";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* Enhanced Software Grid */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.software-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.software-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.software-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.software-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--light-green);
    border-radius: 8px;
    display: inline-block;
}

/* Enhanced Buttons & Links */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--dark-green) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-gray-50);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-sm);
}

.table-of-contents h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    background: var(--light-green);
    color: var(--dark-green);
    transform: translateX(4px);
}

/* Last Updated */
.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-green);
    color: var(--dark-green);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--border-green);
}

.last-updated::before {
    content: "📅";
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background: var(--bg-gray-900);
    color: white;
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.footer-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: white;
    text-decoration: underline;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 64px;
    }
    
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem;
        border-bottom: 1px solid var(--border-gray);
        box-shadow: var(--shadow-lg);
        z-index: 9999;
        list-style: none;
        width: 100%;
    }
    
    .nav-menu[data-open="true"] {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .nav-menu li {
        margin: 0;
        list-style: none;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1.1rem;
        color: var(--text-dark);
        width: 100%;
    }
    
    .nav-menu a:hover {
        background: var(--bg-gray-50);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .breadcrumb-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .article-content h2 {
        font-size: 1.75rem;
        margin: 2.5rem 0 1.25rem 0;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .comparison-table {
        font-size: 0.9rem;
        margin: 2rem 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .software-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.875rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .pros-cons-item {
        padding: 1.5rem;
    }
    
    .software-card {
        padding: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.625rem;
    }
    
    .article-content h3 {
        font-size: 1.375rem;
    }
    
    .article-content p {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.pt-4 { padding-top: 2rem; }
.pb-4 { padding-bottom: 2rem; }
.font-bold { font-weight: 600; }
.font-semibold { font-weight: 500; }
.green-highlight { color: var(--primary-green); font-weight: 600; }

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll behavior for nav */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}