/**
 * Perrystone Calendar Styles
 * Version: 1.0.0
 */

.psc-events-accordion {
    margin: 20px 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.psc-event-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.psc-event-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.psc-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    gap: 40px;
}

.psc-event-header:hover {
    background: #e9ecef;
}

.psc-event-header.active {
    background: #e3f2fd;
    border-bottom-color: #2196F3;
}

.psc-event-date-box {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 10px 15px 10px;
    font-weight: 700;
    font-size: 1.8em;
    color: #333;
    text-align: center;
}

.psc-date-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.psc-date-number {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
}

.psc-date-month {
    font-size: 0.6em;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1;
}

.psc-date-range {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    font-size: 0.9em;
    line-height: 1;
}

.psc-date-start-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: -8px;
}

.psc-date-start {
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1;
}

.psc-date-end {
    font-weight: 700;
    font-size: 0.95em;
    position: relative;
    top: -8px;
}

.psc-date-dash {
    font-weight: 400;
    font-size: 0.7em;
    position: relative;
    top: -8px;
}

.psc-event-header-content {
    flex: 1;
}

.psc-event-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase !important;
}

.psc-event-subtitle {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 400;
    color: #555;
    line-height: 1.2;
    font-style: italic;
    text-transform: uppercase !important;
}

.psc-event-address {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #666;
    line-height: 1.4;
}

.psc-event-address strong {
    font-weight: 600;
}

.psc-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.psc-event-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #555;
}

.psc-icon {
    font-size: 1.1em;
}

.psc-event-date,
.psc-event-time,
.psc-event-location {
    display: flex;
    align-items: flex-start;
}

.psc-event-location {
    max-width: 100%;
}

.psc-event-toggle {
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.psc-toggle-icon {
    font-size: 1.2em;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
}

.psc-event-header.active .psc-toggle-icon {
    transform: rotate(180deg);
}

.psc-event-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.psc-event-content.active {
    max-height: 5000px;
    transition: max-height 0.6s ease-in;
}

.psc-event-content-inner {
    padding: 25px;
    background: #fff;
}

.psc-event-image {
    margin-bottom: 20px;
}

.psc-event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.psc-event-description {
    color: #444;
    line-height: 1.7;
    font-size: 1em;
}

.psc-event-description p {
    margin-bottom: 15px;
}

.psc-event-description p:last-child {
    margin-bottom: 0;
}

.psc-event-description h1,
.psc-event-description h2,
.psc-event-description h3,
.psc-event-description h4,
.psc-event-description h5,
.psc-event-description h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.psc-event-description ul,
.psc-event-description ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.psc-event-description li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psc-event-header {
        padding: 15px;
    }

    .psc-event-title {
        font-size: 1.3em;
    }

    .psc-event-meta {
        flex-direction: column;
        gap: 10px;
    }

    .psc-event-content-inner {
        padding: 20px 15px;
    }

    .psc-event-toggle {
        margin-left: 10px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .psc-event-title {
        font-size: 1.2em;
    }

    .psc-event-meta > div {
        font-size: 0.9em;
    }

    .psc-event-description {
        font-size: 0.95em;
    }
}

/* Admin Styles */
.psc-meta-box {
    padding: 10px 0;
}

.psc-meta-box p {
    margin-bottom: 15px;
}

.psc-meta-box label {
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
    color: #23282d;
}

.psc-meta-box input[type="date"],
.psc-meta-box input[type="time"],
.psc-meta-box input[type="text"],
.psc-meta-box textarea {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.psc-meta-box input[type="checkbox"] {
    margin-right: 8px;
}
