/* PickValue Stylesheet */

:root {
    --color-primary: #232f3e;
    --color-accent: #ff9900;
    --color-accent-hover: #e68a00;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e9ecef;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    --max-width: 800px;
    --spacing: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem var(--spacing);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

/* Main */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--color-text-light);
}

/* Category Section */
.category-section,
.type-section,
.articles-section {
    margin-bottom: 2rem;
}

.category-section h2,
.type-section h2,
.articles-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-badge:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.category-badge .count {
    margin-left: 0.25rem;
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Type Tabs */
.type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.type-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.type-tab:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.type-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--color-accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 0.5rem;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header .description {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Article List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card a {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.article-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.article-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-card time {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Article Page */
.article-page {
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.article-header h1 {
    font-size: 1.75rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Persona Box */
.persona-box {
    background: linear-gradient(135deg, #fef6e6 0%, #fff5f5 100%);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid #ffe0cc;
}

.persona-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.persona-info {
    flex: 1;
}

.persona-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.persona-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.persona-info p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Article Content */
.article-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}

.article-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Pros & Cons */
.pros-cons {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.pros-cons.pros {
    background: #e8f5e9;
    border-left: 4px solid var(--color-success);
}

.pros-cons.cons {
    background: #ffebee;
    border-left: 4px solid var(--color-danger);
}

.pros-cons h3 {
    margin-bottom: 0.5rem;
}

.pros-cons ul {
    margin: 0;
}

/* Verdict */
.verdict {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    margin: 2rem 0;
}

.verdict h3 {
    margin-bottom: 0.5rem;
}

/* Product Links */
.product-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.product-links h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-card {
    border: 2px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.15);
}

.product-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.product-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-badge {
    display: inline-block;
    background: #232f3e;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.product-action {
    flex-shrink: 0;
}

.buy-button {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.buy-button:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .product-link {
        flex-wrap: wrap;
    }

    .product-image {
        width: 80px;
        height: 80px;
    }

    .product-info {
        flex: 1 1 calc(100% - 96px);
    }

    .product-action {
        width: 100%;
        margin-top: 0.75rem;
    }

    .buy-button {
        display: block;
        text-align: center;
        width: 100%;
    }
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.error-page a {
    color: var(--color-accent);
}

/* Footer */
footer {
    background: var(--color-primary);
    color: #fff;
    padding: 2rem var(--spacing);
    text-align: center;
    margin-top: auto;
}

footer a {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 640px) {
    :root {
        --spacing: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }
}
