/* ===========================
   Inamon's Sound Tool Lab
   =========================== */

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-primary: #2a6496;
    --color-primary-hover: #1e4a6e;
    --color-border: #e0e0e0;
    --color-accent: #4a90d9;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --max-width: 960px;
    --radius: 6px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base */
html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

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

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-logo:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Main */
.site-main {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Hero */
.hero {
    margin-bottom: 2.5rem;
}

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hero-lead {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.card-image {
    background: #f5f5f5;
    padding: 1rem;
    text-align: center;
}

.card-image img {
    margin: 0 auto;
    max-height: 200px;
    object-fit: contain;
}

.card-body {
    padding: 1.25rem;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.btn:hover {
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    background: var(--color-primary);
    color: #fff;
    margin-right: 0.5rem;
}

.badge-light {
    background: var(--color-border);
    color: var(--color-text-muted);
}

/* Page */
.page h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
}

/* Software Detail */
.software-header {
    margin-bottom: 2rem;
}

.software-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.software-howtouse-link {
    margin-top: 1rem;
}

.software-description {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.software-screenshot {
    margin-bottom: 2rem;
    background: #f5f5f5;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.software-screenshot img {
    margin: 0 auto;
    max-height: 400px;
    object-fit: contain;
}

.software-body {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.software-body p {
    margin-bottom: 1rem;
}

.software-features {
    margin-bottom: 2rem;
}

.software-features h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.software-features ul {
    list-style: none;
    padding: 0;
}

.software-features li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.software-features li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--color-accent);
    font-weight: bold;
}

.software-requirements {
    margin-bottom: 2rem;
}

.software-requirements h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.software-requirements dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
}

.software-requirements dt {
    font-weight: 600;
    color: var(--color-text-muted);
}

.software-formats {
    margin-bottom: 2rem;
}

.software-formats h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.software-formats ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.software-formats li {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
}

.software-download {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.software-download h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
}

.download-table th,
.download-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.download-table th {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.download-table td:last-child {
    text-align: right;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.software-history {
    margin-bottom: 2rem;
}

.software-history h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.history-list dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.history-list dd {
    color: var(--color-text-muted);
    margin-left: 1rem;
    margin-top: 0.25rem;
}

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

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--color-text-muted);
}

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

/* How To Use */
.howtouse h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.howtouse-content h2 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--color-border);
}

.howtouse-content h3 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.howtouse-content h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.howtouse-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.howtouse-content ul,
.howtouse-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.howtouse-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.howtouse-content img {
    margin: 1rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.howtouse-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.howtouse-content th,
.howtouse-content td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.howtouse-content th {
    font-weight: 600;
    color: var(--color-text-muted);
}

.howtouse-content dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.howtouse-content dd {
    margin-left: 1rem;
    margin-top: 0.25rem;
    line-height: 1.7;
}

.howtouse-content code {
    background: var(--color-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Section headings */
.software-list h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .software-header h1 {
        font-size: 1.5rem;
    }
}
