/* Parknest Public Frontend Styles */

.parknest-schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
}

/* Header */
.parknest-schedule-header {
    text-align: center;
    margin-bottom: 30px;
}

.parknest-schedule-header h2 {
    font-size: 2em;
    margin: 20px 0 10px;
    color: #0073aa;
    font-weight: 700;
}

/* View Switcher */
.parknest-view-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 15px;
    flex-wrap: wrap;
}

.parknest-view-btn {
    padding: 8px 16px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.parknest-view-btn:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-1px);
}

.parknest-view-btn.active {
    background: #0073aa;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.parknest-schedule-info {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* Schedule Grid - Responsive Layout */
.parknest-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    transition: grid-template-columns 0.3s ease;
}

/* Day View - Single Column */
.parknest-schedule-grid.view-day {
    grid-template-columns: 1fr;
}

/* Week View - 7 Days */
.parknest-schedule-grid.view-week {
    grid-template-columns: repeat(7, 1fr);
}

/* Month View - Full Width */
.parknest-schedule-grid.view-month {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* Tablet: Reduce to 4 columns in week view */
@media (max-width: 1200px) {
    .parknest-schedule-grid.view-week {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .parknest-schedule-grid.view-month {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Mobile: Reduce to 2 columns in week view, 1 in day view */
@media (max-width: 768px) {
    .parknest-schedule-grid.view-week {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .parknest-schedule-grid.view-day {
        grid-template-columns: 1fr;
    }
    
    .parknest-schedule-grid.view-month {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

/* Small Mobile: Single column for all views */
@media (max-width: 480px) {
    .parknest-schedule-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Day Cards */
.parknest-day-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

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

.parknest-day-card.is-today {
    border-left: 4px solid #5cb85c;
    border-radius: 0 8px 8px 0;
    background: #f0f8f0;
}

/* Day Header */
.parknest-day-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #555;
    padding: 12px 15px;
    text-align: center;
}

.parknest-day-header h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    font-weight: 700;
    color: #555;
}

.parknest-day-date {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.95;
    color: #555;
}

.parknest-day-card.is-today .parknest-day-header {
    background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
}

/* Month View Specific Styling */
.parknest-schedule-grid.view-month .parknest-day-card {
    min-height: auto;
}

.parknest-schedule-grid.view-month .parknest-day-header {
    padding: 8px 10px;
}

.parknest-schedule-grid.view-month .parknest-day-header h3 {
    font-size: 1em;
    margin: 0 0 3px;
}

.parknest-schedule-grid.view-month .parknest-day-date {
    font-size: 0.75em;
    margin: 0;
}

.parknest-schedule-grid.view-month .parknest-day-schedule {
    padding: 4px;
    min-height: auto;
    max-height: 200px;
    overflow-y: auto;
}

.parknest-schedule-grid.view-month .parknest-shift-card {
    padding: 6px;
    margin-bottom: 4px;
    gap: 2px;
    font-size: 0.85em;
}

.parknest-schedule-grid.view-month .parknest-shift-time {
    font-size: 0.8em;
    line-height: 1.2;
}

.parknest-schedule-grid.view-month .parknest-volunteer-info {
    gap: 1px;
}

.parknest-schedule-grid.view-month .parknest-volunteer-name {
    font-size: 0.8em;
    line-height: 1.2;
}

.parknest-schedule-grid.view-month .parknest-volunteer-email {
    display: none;
}

/* Day Schedule */
.parknest-day-schedule {
    padding: 8px;
    min-height: 60px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Shift Cards */
.parknest-shift-card {
    background: #f9f9f9;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.parknest-shift-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.parknest-shift-card:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
}

/* Status variations */
.parknest-shift-card.parknest-status-vacant {
    opacity: 0.85;
}

.parknest-shift-card.parknest-status-filled {
    /* Use the volunteer color as set */
}

/* Shift Time */
.parknest-shift-time {
    font-weight: 700;
    font-size: 0.95em;
}

.parknest-status-vacant .parknest-shift-time {
    opacity: 0.95;
}

.parknest-status-filled .parknest-shift-time {
    /* Use the contrasting text color */
}

/* Volunteer Info */
.parknest-volunteer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.parknest-volunteer-name {
    font-weight: 700;
    font-size: 0.98em;
    word-break: break-word;
}

.parknest-volunteer-email {
    font-size: 0.8em;
    text-decoration: none;
    border-bottom: 1px solid;
    word-break: break-all;
    opacity: 0.9;
}

.parknest-volunteer-email:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Status Badge */
.parknest-shift-status {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.parknest-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    border: none;
}

/* Remarks/Notes */
.parknest-remarks {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid;
}

.parknest-remark {
    font-size: 0.75em;
    margin-bottom: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    line-height: 1.4;
}

.remark-type {
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.85em;
}

.remark-type.remark-sick {
    background: rgba(255, 255, 255, 0.3);
}

.remark-type.remark-vacancy {
    background: rgba(255, 255, 255, 0.3);
}

.remark-type.remark-note {
    background: rgba(255, 255, 255, 0.3);
}

.remark-text {
    color: #333;
}

.remark-author {
    font-style: italic;
    color: #999;
    font-size: 0.85em;
}

/* No Schedule Message */
.parknest-no-schedule,
.parknest-no-entries {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Footer */
.parknest-schedule-footer {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ========================================
   TABLET OPTIMIZATION (768px and up)
   ======================================== */
@media (min-width: 768px) {
    .parknest-schedule-container {
        padding: 0 20px;
    }

    .parknest-schedule-header h2 {
        font-size: 2.2em;
    }

    .parknest-schedule-info {
        font-size: 1.05em;
    }

    .parknest-schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .parknest-day-header {
        padding: 15px;
    }

    .parknest-day-header h3 {
        font-size: 1.3em;
    }

    .parknest-day-date {
        font-size: 0.9em;
    }

    .parknest-day-schedule {
        padding: 12px;
    }

    .parknest-shift-card {
        padding: 12px;
        margin-bottom: 10px;
        gap: 8px;
    }

    .parknest-shift-time {
        font-size: 1em;
    }

    .parknest-volunteer-name {
        font-size: 1em;
    }

    .parknest-volunteer-email {
        font-size: 0.85em;
    }

    .parknest-status-badge {
        padding: 4px 8px;
        font-size: 0.8em;
    }

    .parknest-remark {
        font-size: 0.8em;
        padding: 8px;
    }

    .parknest-schedule-footer {
        padding: 20px;
        font-size: 0.95em;
    }
}

/* ========================================
   DESKTOP OPTIMIZATION (1024px and up)
   ======================================== */
@media (min-width: 1024px) {
    .parknest-schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
        gap: 25px;
    }

    .parknest-schedule-header h2 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .parknest-schedule-info {
        font-size: 1.15em;
    }

    .parknest-shift-time {
        font-size: 1.05em;
    }

    .parknest-volunteer-name {
        font-size: 1.05em;
    }
}

/* ========================================
   MOBILE OPTIMIZATION (< 768px)
   ======================================== */
@media (max-width: 767px) {
    .parknest-schedule-container {
        padding: 0 8px;
    }

    .parknest-schedule-header {
        margin-bottom: 20px;
    }

    .parknest-schedule-header h2 {
        font-size: 1.4em;
        margin: 15px 0 8px;
    }

    .parknest-schedule-info {
        font-size: 0.95em;
    }

    .parknest-schedule-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 25px;
    }

    .parknest-day-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .parknest-day-card:hover {
        transform: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .parknest-day-header {
        padding: 10px 12px;
    }

    .parknest-day-header h3 {
        font-size: 1.1em;
        margin-bottom: 3px;
    }

    .parknest-day-date {
        font-size: 0.8em;
    }

    .parknest-day-schedule {
        padding: 6px;
    }

    .parknest-shift-card {
        padding: 8px 10px;
        margin-bottom: 6px;
        gap: 5px;
    }

    .parknest-shift-time {
        font-size: 0.9em;
        font-weight: 600;
    }

    .parknest-volunteer-name {
        font-size: 0.9em;
        font-weight: 600;
    }

    .parknest-volunteer-email {
        font-size: 0.75em;
        display: block;
        margin-top: 2px;
    }

    .parknest-shift-status {
        margin-top: 2px;
    }

    .parknest-status-badge {
        padding: 2px 5px;
        font-size: 0.7em;
    }

    .parknest-remarks {
        margin-top: 6px;
        padding-top: 6px;
    }

    .parknest-remark {
        font-size: 0.7em;
        margin-bottom: 3px;
        padding: 5px;
    }

    .remark-type {
        padding: 0 2px;
        font-size: 0.85em;
    }

    .remark-author {
        font-size: 0.75em;
    }

    .parknest-schedule-footer {
        padding: 12px;
        font-size: 0.85em;
        margin-top: 20px;
    }
}

/* ========================================
   SMALL PHONE OPTIMIZATION (< 480px)
   ======================================== */
@media (max-width: 479px) {
    .parknest-schedule-container {
        padding: 0 5px;
    }

    .parknest-schedule-header h2 {
        font-size: 1.2em;
        margin: 10px 0 5px;
    }

    .parknest-schedule-info {
        font-size: 0.9em;
        margin: 0;
    }

    .parknest-schedule-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .parknest-day-header {
        padding: 8px 10px;
    }

    .parknest-day-header h3 {
        font-size: 1em;
        margin-bottom: 2px;
    }

    .parknest-day-date {
        font-size: 0.75em;
    }

    .parknest-day-schedule {
        padding: 4px;
    }

    .parknest-shift-card {
        padding: 7px 8px;
        margin-bottom: 5px;
        gap: 4px;
    }

    .parknest-shift-time {
        font-size: 0.85em;
    }

    .parknest-volunteer-name {
        font-size: 0.85em;
    }

    .parknest-volunteer-email {
        font-size: 0.7em;
    }

    .parknest-status-badge {
        padding: 2px 4px;
        font-size: 0.65em;
    }

    .parknest-remark {
        font-size: 0.65em;
        padding: 4px;
    }

    .parknest-schedule-footer {
        padding: 10px;
        font-size: 0.8em;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATION
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .parknest-shift-card {
        padding: 12px;
    }

    .parknest-volunteer-email {
        padding: 6px 8px;
        display: inline-block;
        margin-top: 4px;
        border-radius: 3px;
        background: #f0f0f0;
    }

    .parknest-shift-card:active {
        background-color: #e8e8e8;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .parknest-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
        page-break-inside: avoid;
    }

    .parknest-day-card {
        break-inside: avoid;
    }
}

