:root {
    --primary-color: #2F4F4F;
    --secondary-color: #3d5c5c;
    --background-color: #ffffff;
    --text-color: #213547;
    --nav-color: #2F4F4F;
    --header-bg: #ffffff;
    --tag-bg: #e9ecef;
    --tag-color: #2F4F4F;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    background-color: #eddfda;
    color: var(--text-color);
}

.site-header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
}

.site-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0.5rem 0;
    color: #1a1a1a;
}

.nav-bar {
    background-color: var(--nav-color);
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calculator-container {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--primary-color);
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.suggestions {
    margin-top: 10px;
    font-size: 0.9em;
}

.tag {
    background-color: var(--tag-bg);
    color: var(--tag-color);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 4px;
    cursor: pointer;
    font-size: 0.9em;
    width: auto;
}

.tag:hover {
    background-color: #dee2e6;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button.secondary {
    background-color: var(--tag-bg);
    color: var(--primary-color);
}

button:hover {
    background-color: var(--secondary-color);
}

button.secondary:hover {
    background-color: #dee2e6;
}

#preview, #result {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#preview {
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.month-section {
    margin-bottom: 20px;
}

.month-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ecef;
}

.post-item {
    margin: 5px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.post-week {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 80px;
}

.post-details {
    flex-grow: 1;
}

.post-category {
    font-weight: 500;
    margin-bottom: 4px;
}

.post-type {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

.post-channels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.channel-tag {
    background-color: var(--tag-bg);
    color: var(--tag-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.preview-title {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ecef;
}

.content-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 0 0 2rem 0;
    color: var(--primary-color);
}

.week-section {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
}

/* Directory Section Styles */
.directory-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.directory-section h2 {
    text-align: center;
    color: #2f4f4f;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
}

.directory-item {
    transition: transform 0.2s ease;
}

.directory-item:hover {
    transform: translateY(-2px);
}

.directory-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.75rem;
    background: #2f4f4f;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.directory-item a:hover {
    background: #3d5c5c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}