:root {
    --bg-color: #f4f7f6;
    --text-color: #333;
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --card-bg: #fff;
    --border-radius: 8px;
    --success: #27ae60;
    --alert: #e74c3c;
    --light-border: #e1e8ed;
}

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

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header p {
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

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

section {
    margin-bottom: 3rem;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--light-border);
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nickname {
    font-weight: 600;
    flex-grow: 1;
}

.commit-hash {
    font-size: 0.85em;
    color: #7f8c8d;
    width: 100%;
}

/* Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.status-badge.success { background-color: var(--success); }
.status-badge.alert { background-color: var(--alert); }


/* Reports UI */
.week-block {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fbff;
    border: 1px solid #dce4ec;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.report-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.report-name {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    margin-bottom: 1.5rem;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: rgba(255,255,255,0.2);
    color: white;
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Markdown styling for the report view */
.report-container {
    background: white;
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

.markdown-body {
    font-size: 16px;
}

.markdown-body h1 { border-bottom: 1px solid var(--light-border); padding-bottom: 0.3em; margin-top: 0;}
.markdown-body h2 { margin-top: 2em; }
.markdown-body table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.markdown-body table th, .markdown-body table td { border: 1px solid var(--light-border); padding: 8px 12px; text-align: left;}
.markdown-body table th { background: #f8fbff; }
.markdown-body pre { background: #282c34; color: #abb2bf; padding: 16px; border-radius: var(--border-radius); overflow-x: auto; }
.markdown-body code { font-family: monospace; background: rgba(0,0,0,0.05); padding: 0.2em 0.4em; border-radius: 3px; }
.markdown-body pre code { background: none; padding: 0; border-radius: 0; }
.markdown-body blockquote { border-left: 4px solid var(--accent-color); padding: 0 1em; color: #555; margin: 0; }

footer {
    text-align: center;
    padding: 2rem 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Expandable Philosophy Section */
.philosophy {
    margin-bottom: 3rem;
}

.philosophy details {
    background: var(--card-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.philosophy summary {
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* schová výchozí šipku v některých prohlížečích */
    position: relative;
    padding-left: 1.5rem;
}

.philosophy summary::-webkit-details-marker {
    display: none;
}

.philosophy summary::before {
    content: "►";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.philosophy details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.philosophy-content {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--light-border);
    color: #444;
}

.philosophy-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.philosophy-content li {
    margin-bottom: 0.5rem;
}
