/**
 * Days Calculator Styles - Elegant, Simplified Monochrome
 */

/* Main container */
.dc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto 2rem;
    line-height: 1.5;
    color: #333;
}

.dc-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: #555;
}

/* Simplified layout without nested cards */
.dc-main-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dc-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.dc-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dc-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dc-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #333;
}

.dc-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Forms */
.dc-form-group {
    margin-bottom: 1rem;
}

.dc-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #555;
}

.dc-date-input, 
.dc-number-input, 
.dc-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.2s;
}

.dc-date-input:focus, 
.dc-number-input:focus, 
.dc-select:focus {
    border-color: #333;
    outline: none;
}

.dc-button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.dc-button:hover {
    background-color: #000;
}

.dc-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Results */
.dc-result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.dc-result-content {
    text-align: center;
}

.dc-result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.dc-result-date {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.dc-result-date a {
    color: #333;
    text-decoration: none;
}

.dc-result-date a:hover {
    text-decoration: underline;
}

.dc-result-text {
    color: #555;
    font-size: 1.1rem;
}

/* Quick calculations */
.dc-quick-calcs {
    margin-top: 2rem;
}

.dc-quick-section-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.dc-quick-section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.dc-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.dc-quick-item {
    background-color: #f7f7f7;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.dc-quick-item:hover {
    transform: translateY(-2px);
    background-color: #efefef;
}

.dc-quick-days {
    font-weight: 600;
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.dc-quick-date {
    font-size: 0.875rem;
    color: #666;
}

/* Detail page */
.dc-detail-page {
    max-width: 900px;
}

.dc-result-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.dc-calendar-icon {
    margin-bottom: 1.5rem;
}

.dc-icon-large {
    font-size: 2.5rem;
}

.dc-result-info h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #555;
}

.dc-future-date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.dc-today-date {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Calendar view */
.dc-calendar-view h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.dc-month-calendar {
    margin-bottom: 2rem;
}

.dc-month-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: center;
}

.dc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #eee;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.dc-weekday {
    background-color: #f7f7f7;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
}

.dc-day {
    background-color: #fff;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    min-height: 2.5rem;
}

.dc-empty {
    background-color: #f9f9f9;
}

.dc-today {
    background-color: #f0f0f0;
    font-weight: 600;
}

.dc-target-day {
    background-color: #333;
    color: white;
    font-weight: 600;
}

.dc-day-marker {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #666;
    color: white;
    font-size: 0.7rem;
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dc-today .dc-day-marker {
    background-color: #444;
}

.dc-target-day .dc-day-marker {
    background-color: white;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dc-main-container {
        grid-template-columns: 1fr;
    }
    
    .dc-quick-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .dc-day {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .dc-weekday {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .dc-future-date {
        font-size: 1.5rem;
    }
}

/* Add these styles to your days-calculator.css file */

/* Make detail page use more width */
.dc-detail-page {
    max-width: 1200px;
    width: 100%;
    padding: 0;
}

/* Remove card style from calendar view */
.dc-calendar-view {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 2rem;
}

/* Make month calendars wider */
.dc-month-calendar {
    margin-bottom: 3rem;
    max-width: 100%;
}

/* Improve calendar grid size */
.dc-calendar-grid {
    width: 100%;
    gap: 1px;
}

/* Make days in calendar slightly larger */
.dc-day {
    padding: 1rem;
    min-height: 3rem;
}

/* Style the back button */
.dc-back-button {
    display: inline-block;
    background: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.dc-back-button:hover {
    background: #555;
    text-decoration: none;
    color: white;
}

/* Center content on result page */
.dc-result-header {
    text-align: center;
}

/* Make future date more prominent */
.dc-future-date {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
}

/* Back button container */
.dc-back-container {
    text-align: center;
    margin: 2rem 0;
}

.entry-content:not(:first-child) .dc-wrapper {
  margin-top: 0 !important;
}