/* Pixel Suggest Events - Professional Styles
   Version: 1.0.2
*/

/* ============================================
   CSS Variables for easy customization
   ============================================ */
:root {
    --pse-primary-color: #f7c846;
    --pse-primary-dark: #e0b13a;
    --pse-text-dark: #1a1a2e;
    --pse-text-light: #6c757d;
    --pse-border-color: #e9ecef;
    --pse-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --pse-transition: all 0.3s ease;
}

/* ============================================
   Container & Layout
   ============================================ */
.pse-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pse-events-section {
    padding: 60px 0;
    background: #ffffff;
}

.pse-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pse-border-color);
}

.pse-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pse-text-dark);
    margin: 0;
    position: relative;
}

.pse-section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--pse-primary-color);
}

.pse-view-all-link {
    color: var(--pse-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--pse-transition);
}

.pse-view-all-link:hover {
    color: var(--pse-primary-dark);
    transform: translateX(5px);
}

/* ============================================
   Featured Event (Homepage)
   ============================================ */
.pse-featured-event {
    margin-bottom: 50px;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--pse-transition);
}

.pse-featured-event:hover {
    box-shadow: var(--pse-hover-shadow);
}

.pse-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .pse-featured-grid {
        grid-template-columns: 1fr;
    }
}

.pse-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pse-featured-content {
    padding: 40px 40px 40px 0;
}

@media (max-width: 768px) {
    .pse-featured-content {
        padding: 30px;
    }
}

.pse-event-date-badge {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, var(--pse-primary-color), var(--pse-primary-dark));
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pse-date-day {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pse-date-month {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pse-date-year {
    display: block;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
}

.pse-event-title {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0 10px;
}

.pse-event-title a {
    color: var(--pse-text-dark);
    text-decoration: none;
    transition: var(--pse-transition);
}

.pse-event-title a:hover {
    color: var(--pse-primary-color);
}

.pse-event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid var(--pse-border-color);
    border-bottom: 1px solid var(--pse-border-color);
}

.pse-meta-time,
.pse-meta-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pse-text-light);
    font-size: 14px;
}

.pse-event-excerpt {
    color: var(--pse-text-light);
    line-height: 1.6;
    margin: 15px 0;
    text-align: justify;
}

.pse-read-more {
    display: inline-block;
    color: var(--pse-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--pse-transition);
}

.pse-read-more:hover {
    color: var(--pse-primary-dark);
    transform: translateX(5px);
}

/* ============================================
   Events Grid (Homepage - Small Cards)
   ============================================ */
.pse-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pse-event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--pse-transition);
    border: 1px solid var(--pse-border-color);
}

.pse-event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pse-hover-shadow);
    border-color: transparent;
}

.pse-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pse-card-content {
    padding: 20px;
}

.pse-card-date {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: var(--pse-primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.pse-card-day {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.pse-card-month {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

.pse-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.4;
}

.pse-card-title a {
    color: var(--pse-text-dark);
    text-decoration: none;
    transition: var(--pse-transition);
}

.pse-card-title a:hover {
    color: var(--pse-primary-color);
}

.pse-card-meta {
    margin: 10px 0;
}

.pse-card-excerpt {
    color: var(--pse-text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
}

/* ============================================
   Events List (All Events & Paginated Pages)
   ============================================ */
.pse-events-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pse-list-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    transition: var(--pse-transition);
    border: 1px solid var(--pse-border-color);
}

.pse-list-item:hover {
    box-shadow: var(--pse-hover-shadow);
    border-color: transparent;
}

@media (max-width: 768px) {
    .pse-list-item {
        flex-direction: column;
        gap: 20px;
    }
}

.pse-list-date {
    text-align: center;
    min-width: 100px;
    background: linear-gradient(135deg, var(--pse-primary-color), var(--pse-primary-dark));
    padding: 15px;
    border-radius: 12px;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .pse-list-date {
        align-self: center;
        width: 100px;
    }
}

.pse-list-day {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pse-list-month {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    margin-top: 5px;
}

.pse-list-year {
    display: block;
    font-size: 12px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
}

.pse-list-image {
    flex-shrink: 0;
    width: 180px;
}

@media (max-width: 768px) {
    .pse-list-image {
        width: 100%;
    }
}

.pse-list-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.pse-list-content {
    flex: 1;
}

.pse-list-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.pse-list-title a {
    color: var(--pse-text-dark);
    text-decoration: none;
    transition: var(--pse-transition);
}

.pse-list-title a:hover {
    color: var(--pse-primary-color);
}

.pse-list-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.pse-list-excerpt {
    color: var(--pse-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* ============================================
   Pagination
   ============================================ */
.pse-pagination {
    margin-top: 50px;
    text-align: center;
}

.pse-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pse-pagination li {
    display: inline-block;
}

.pse-pagination a,
.pse-pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid var(--pse-border-color);
    border-radius: 8px;
    color: var(--pse-text-dark);
    text-decoration: none;
    transition: var(--pse-transition);
}

.pse-pagination a:hover {
    background: var(--pse-primary-color);
    border-color: var(--pse-primary-color);
    color: #ffffff;
}

.pse-pagination .current {
    background: var(--pse-primary-color);
    border-color: var(--pse-primary-color);
    color: #ffffff;
}

/* ============================================
   Load More Button
   ============================================ */
.pse-load-more {
    text-align: center;
    margin-top: 50px;
}

.pse-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--pse-primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--pse-transition);
    border: none;
    cursor: pointer;
}

.pse-load-more-btn:hover {
    background: var(--pse-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 200, 70, 0.3);
}

/* ============================================
   Single Event Page
   ============================================ */
.pse-single-event {
    padding: 60px 0;
    background: #ffffff;
}

.pse-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.pse-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--pse-border-color);
}

.pse-single-date {
    text-align: center;
    background: linear-gradient(135deg, var(--pse-primary-color), var(--pse-primary-dark));
    padding: 15px 25px;
    border-radius: 12px;
}

.pse-single-day {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pse-single-month {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
}

.pse-single-year {
    display: block;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
    margin-top: 5px;
}

.pse-single-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.pse-single-time,
.pse-single-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 30px;
    color: var(--pse-text-dark);
    font-weight: 500;
}

.pse-single-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--pse-text-dark);
    margin: 20px 0 30px;
    line-height: 1.2;
}

.pse-single-image {
    margin: 30px 0;
    text-align: center;
}

.pse-single-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pse-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pse-text-dark);
}

.pse-single-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.pse-single-content h2,
.pse-single-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ============================================
   No Events Message
   ============================================ */
.pse-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: var(--pse-text-light);
    font-size: 18px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .pse-events-section {
        padding: 40px 0;
    }
    
    .pse-section-title {
        font-size: 28px;
    }
    
    .pse-section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pse-event-title {
        font-size: 24px;
    }
    
    .pse-single-title {
        font-size: 28px;
    }
    
    .pse-single-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .pse-container {
        padding: 0 15px;
    }
    
    .pse-events-grid {
        grid-template-columns: 1fr;
    }
    
    .pse-list-meta {
        flex-direction: column;
        gap: 8px;
    }
}
/* ============================================
   Single Event Page
   All colors reference CSS custom properties so
   the admin color-picker settings apply here too.
   ============================================ */

.pse-single-wrap {
	max-width:     820px;
	margin:        36px auto 52px;
	padding:       32px 36px;
	background:    #ffffff;
	border-radius: 14px;
	box-shadow:    0 4px 24px rgba(15,23,42,.07);
	border:        1px solid var(--pse-border-color);
	font-family:   system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial,sans-serif;
	color:         var(--pse-text-dark);
}

/* ── Top row ── */
.pse-single-header {
	display:     flex;
	gap:         24px;
	align-items: flex-start;
	flex-wrap:   wrap;
}

/* ── Date badge ── uses primary color CSS vars ── */
.pse-single-badge {
	flex-shrink:     0;
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	justify-content: center;
	width:           100px;
	padding:         18px 10px;
	background:      linear-gradient(160deg, var(--pse-primary-color) 0%, var(--pse-primary-dark) 100%);
	border-radius:   12px;
	box-shadow:      0 6px 18px rgba(0,0,0,.12);
	text-align:      center;
	line-height:     1;
}
.pse-single-badge__day {
	display:        block;
	font-size:      46px;
	font-weight:    800;
	color:          #fff;
	line-height:    1;
	letter-spacing: -1px;
}
.pse-single-badge__mon {
	display:        block;
	font-size:      16px;
	font-weight:    700;
	color:          #fff;
	text-transform: uppercase;
	letter-spacing: .8px;
	margin-top:     6px;
}
.pse-single-badge__year {
	display:   block;
	font-size: 13px;
	color:     rgba(255,255,255,.88);
	margin-top: 5px;
}

/* ── Info column ── */
.pse-single-info {
	flex:      1;
	min-width: 220px;
}
.pse-single-title {
	margin:      0 0 14px;
	font-size:   28px;
	font-weight: 800;
	line-height: 1.15;
	color:       var(--pse-text-dark);
}

/* ── Meta row (date / time / location dots) ── */
.pse-single-meta {
	display:   flex;
	flex-wrap: wrap;
	gap:       8px 20px;
	margin:    0 0 14px;
}
.pse-single-meta__item {
	display:     inline-flex;
	align-items: center;
	gap:         7px;
	font-size:   14px;
	color:       var(--pse-text-light);
}
/* Dot colors: primary uses the admin-controlled primary-color var */
.pse-single-meta__dot {
	display:       inline-block;
	width:         8px;
	height:        8px;
	border-radius: 50%;
	flex-shrink:   0;
}
.pse-single-meta__dot--primary { background: var(--pse-primary-color); }
.pse-single-meta__dot--blue    { background: #60a5fa; }
.pse-single-meta__dot--green   { background: #34d399; }

/* ── Excerpt ── */
.pse-single-excerpt {
	font-size:    15px;
	line-height:  1.72;
	color:        var(--pse-text-light);
	text-align:   justify;
	text-justify: inter-word;
}

/* ── Body: image + content ── */
.pse-single-body {
	margin-top:  28px;
	padding-top: 24px;
	border-top:  1px solid var(--pse-border-color);
}
.pse-single-image {
	text-align:    center;
	margin-bottom: 24px;
}
.pse-single-image img {
	max-width:     100%;
	width:         720px;
	height:        auto;
	border-radius: 10px;
	box-shadow:    0 8px 28px rgba(15,23,42,.07);
	display:       inline-block;
}

/* ── Content body ── */
.pse-single-content,
.pse-event-content {
	font-size:   17px;
	line-height: 1.8;
	color:       var(--pse-text-dark);
}
.pse-single-content p,
.pse-single-content li,
.pse-event-content p,
.pse-event-content li {
	text-align:   justify;
	text-justify: inter-word;
}
.pse-single-content p  { margin-bottom: 1.1em; }
.pse-single-content img { max-width: 100%; height: auto; border-radius: 6px; }

/* ── Responsive ── */
@media (max-width: 700px) {
	.pse-single-wrap   { padding: 20px 16px; margin: 16px 12px 32px; }
	.pse-single-title  { font-size: 22px; }
	.pse-single-badge  { width: 80px; padding: 14px 8px; }
	.pse-single-badge__day { font-size: 34px; }
	.pse-single-badge__mon { font-size: 13px; }
}
