/* Ballistics API Release Notes Stylesheet */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

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

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

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Main Content */
main {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Release Cards */
.releases-grid {
    display: grid;
    gap: 1.5rem;
}

.release-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.release-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.release-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.release-card h2 {
    font-size: 1.5rem;
}

.release-card h2 a {
    color: var(--primary);
    text-decoration: none;
}

.release-card h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.release-card .date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.release-card p {
    color: var(--gray-500);
    margin: 1rem 0;
}

.release-card-footer {
    margin-top: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

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

/* Release Detail Page */
.release-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.release-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.release-meta {
    display: flex;
    gap: 2rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert h3 {
    margin-bottom: 0.5rem;
}

/* Tickets */
.tickets {
    margin-bottom: 1.5rem;
}

.ticket {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    font-family: monospace;
}

/* Content */
.content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content h1, .content h2, .content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content h1:first-child, .content h2:first-child, .content h3:first-child {
    margin-top: 0;
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content code {
    background: var(--gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.content pre {
    background: var(--gray-900);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.content pre code {
    background: transparent;
    padding: 0;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content table th {
    background: var(--gray-100);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.content table td {
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
}

.content table tr:nth-child(even) {
    background: var(--gray-50);
}

/* Inline code in paragraphs */
.content p code {
    background: var(--gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--danger);
}

/* Blockquotes */
.content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--gray-700);
    font-style: italic;
}

/* Commits Section */
.commits {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.commits h2 {
    margin-bottom: 1.5rem;
}

.commit-section {
    margin-bottom: 1.5rem;
}

.commit-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.commit-section ul {
    list-style: none;
}

.commit-section li {
    padding: 0.25rem 0;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--gray-500);
}

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

/* Responsive */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .release-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}