/* ===========================================
   Printable Calendar - Tool Specific Styles
   =========================================== */

/* --- SCREEN VIEW STYLES (Default) --- */
.pc-box {
    max-width: 900px;
    margin: 0 auto;
}

/* Controls */
.pc-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    background: #fcfcfc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.pc-input-group {
    flex: 1;
    min-width: 150px;
}

.pc-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.pc-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
}

.pc-btn-print {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #0ea5e9; /* Sky Blue */
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}
.pc-btn-print:hover { background: #0284c7; }

/* Calendar Grid Container */
#calendarGrid {
    padding: 10px;
}

.pc-month-header {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #1f2937;
}

.pc-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
}

.pc-calendar-table th,
.pc-calendar-table td {
    border: 1px solid #e0e0e0;
    padding: 5px;
    height: 100px; /* Gives space for writing */
    vertical-align: top;
    font-size: 1.1rem;
}

.pc-calendar-table th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    height: 40px;
    text-align: center;
}

.pc-calendar-table td {
    color: #1f2937;
    background: #ffffff;
}

/* Highlight weekends */
.pc-calendar-table th:first-child,
.pc-calendar-table td:first-child {
    color: #dc2626; /* Red for Sunday */
}

/* --- PRINT VIEW STYLES (PDF/Print Output) --- */
@media print {
    /* Hide all non-essential UI elements */
    header, footer, aside, .pc-controls, .hub-title, .hub-subtitle, .seo-content {
        display: none !important;
    }

    /* Ensure main content takes full page width */
    .calc-wrapper, #calculator-hub, .calculator-hub-container, .calculator-box {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Force calendar to stretch and ensure borders are solid for printing */
    .pc-calendar-table {
        border-color: #000 !important;
        page-break-after: always; /* Ensure one calendar per page if possible */
    }

    .pc-calendar-table th,
    .pc-calendar-table td {
        border-color: #000 !important;
        font-size: 11pt;
        height: 1.2in; /* Good height for print cells */
    }
    
    .pc-month-header {
        font-size: 20pt;
        padding-top: 10pt;
    }

    /* Watermark - Applies the text when printing */
    .pc-box::after {
        content: "SEOlust.com";
        position: fixed;
        bottom: 10mm;
        right: 10mm;
        font-size: 8pt;
        color: #888;
        opacity: 0.6;
    }
}