/* OpenClaw Daily Report - Stylesheet */

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Main content */
main {
    padding: 2rem 0;
}

/* Report header */
.report-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 2rem;
}

.report-header h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.report-header time {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Sections */
.section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.section h2 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

/* Overview highlights */
.highlight-list {
    list-style: none;
}

.highlight-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* News cards */
.news-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
}

.news-card h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Product sections */
.product-section {
    margin-bottom: 1.5rem;
}

.product-section h3 {
    background: linear-gradient(90deg, var(--primary-color), #ff8c5a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Case cards */
.case-card {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.case-card h3 {
    margin-top: 0;
}

/* Stats and insights boxes */
.stats-box, .insights-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.stats-box h4, .insights-box h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.insights-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

th, td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

th {
    font-weight: 600;
    opacity: 0.9;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
.link-list {
    list-style: none;
    padding-left: 0;
}

.link-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.link-list a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.link-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* About section */
.about {
    background: var(--secondary-color);
    color: white;
}

.about h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

/* Archive page specific */
.archive-list {
    list-style: none;
    padding-left: 0;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.archive-item:hover {
    background: var(--bg-color);
}

.archive-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.archive-item a:hover {
    color: var(--primary-color);
}

.archive-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Index page specific */
.latest-report {
    text-align: center;
    padding: 3rem 0;
}

.latest-report h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .report-header h1 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .archive-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
