/**
 * WP Custom Calendar - Styles
 */

/* Calendar Wrapper */
.wpcc-calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Calendar Header */
.wpcc-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.wpcc-current-month {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
	text-align:center;
}

.wpcc-nav-btn {
    background: #941263;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
	margin:0;
}

.wpcc-nav-btn:hover {
    background: #5e1e46;
	color:#fff;
}

/* Calendar Table */
.wpcc-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.wpcc-calendar thead th {
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
}

.wpcc-calendar-day {
    padding: 15px 5px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #f0f0f0;
    cursor: default;
    position: relative;
    height: auto;
}

.wpcc-calendar-day.wpcc-empty {
    background: #fafafa;
}

.wpcc-calendar-day.wpcc-has-events {
    background: #e3f2fd;
    cursor: pointer;
    transition: background 0.3s;
}

.wpcc-calendar-day.wpcc-has-events:hover {
    background: #bbdefb;
}

.wpcc-day-number {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.wpcc-event-indicator {
    display: inline-block;
    background: #941263;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Modal */
.wpcc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.wpcc-modal.wpcc-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcc-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Full event lightbox content */
.wpcc-event-lightbox-content {
    padding: 10px 0;
}

.wpcc-lightbox-image {
    margin: 0 -30px 20px;
}

.wpcc-lightbox-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wpcc-lightbox-title {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.wpcc-lightbox-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wpcc-lightbox-meta .wpcc-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}

.wpcc-lightbox-meta svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #941263;
}

.wpcc-lightbox-meta .wpcc-address {
    color: #666;
}

.wpcc-lightbox-content-text {
    margin: 25px 0;
    line-height: 1.8;
    color: #444;
}

.wpcc-lightbox-content-text p {
    margin-bottom: 15px;
}

.wpcc-lightbox-content-text img {
    max-width: 100%;
    height: auto;
}

.wpcc-lightbox-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wpcc-lightbox-actions .wpcc-btn {
    padding: 12px 24px;
}

.wpcc-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.wpcc-modal-close:hover {
    color: #000;
}

.wpcc-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Modal Event Item */
.wpcc-modal-event {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fafafa;
}

.wpcc-modal-event:last-child {
    margin-bottom: 0;
}

.wpcc-modal-event h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.wpcc-modal-event-meta {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.wpcc-modal-event-meta svg {
    vertical-align: middle;
    margin-right: 5px;
}

.wpcc-modal-event-excerpt {
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
}

.wpcc-modal-event-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wpcc-modal-event-actions .wpcc-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Events List */
.wpcc-events-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wpcc-events-grid {
    display: grid;
    gap: 0px;
}

.wpcc-event-item {
    display: flex;
    gap: 0px;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 1em;
    transition: box-shadow 0.3s;
}

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

.wpcc-event-date-badge {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: #941263;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
	transform: scale(0.75);
}

.wpcc-date-day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.wpcc-date-month {
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 2px;
}

.wpcc-event-content {
    flex: 1;
}

.wpcc-event-title {
    margin: 0 0 12px 0;
    font-size: 22px;
}

.wpcc-event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.wpcc-event-title a:hover {
    color: #941263;
}

.wpcc-event-meta {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.wpcc-event-date-full {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.wpcc-event-date-full svg {
    flex-shrink: 0;
    color: var(--primary-color, #941263);
}

.wpcc-event-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
}

.wpcc-event-location svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color, #941263);
}

.wpcc-event-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.wpcc-event-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color, #941263);
}

.wpcc-event-description {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.wpcc-event-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wpcc-event-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.wpcc-btn {
    padding: 6px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
	margin-bottom: 0;
    font-size: 14px;
	line-height: 1.8;
}

.wpcc-btn-primary {
    background: #941263;
    color: #fff;
}

.wpcc-btn-primary:hover {
    background: #5e1e46;
	color:#fff;
}

.wpcc-btn-secondary {
    background: #fff;
    color: #941263;
    border: 1px solid #941263;
}

.wpcc-btn-secondary:hover {
    background: #941263;
    color: #fff;
}

.wpcc-btn-external {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2ecc71;
    color: #fff;
    padding: 12px 24px;
}

.wpcc-btn-external:hover {
    background: #27ae60;
}

.wpcc-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Single Event */

.wpcc-single-event {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.wpcc-event-single {
    background: #fff;
    overflow: hidden;
	padding:2em;
}

.wpcc-event-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.data-evento {
	display:block;
	font-size: 1.2em;
}

.title-event {text-align:left; color:#941263;}

.wpcc-event-title {
    margin: 0 0 0 0;
    font-size: 22px;
    color: #333;
}

.wpcc-event-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.wpcc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
	justify-content:start;
}

.wpcc-meta-item svg {
    flex-shrink: 0;
}

.wpcc-event-address-full {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    color: #555;
    line-height: 1.5;
}

.wpcc-event-thumbnail {
    margin: 0;
}

.wpcc-event-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.wpcc-event-content {
    padding: 0 1em;
    line-height: 1.8;
    color: #444;
}

.wpcc-event-external-link {
    padding: 0 30px 30px;
}

.wpcc-event-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.wpcc-back-link {
    color: #941263;
    text-decoration: none;
    font-weight: 500;
}

.wpcc-back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	
	.wpcc-events-list {
		padding: 0;
	}
	
	.wpcc-event-item {
	padding: 1em 0;
	}
	
    .wpcc-calendar-wrapper {
        padding: 15px;
    }
    
    .wpcc-current-month {
        font-size: 18px;
    }
    
    .wpcc-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .wpcc-calendar-day {
        padding: 8px 2px;
        height: 60px;
    }
    
    .wpcc-day-number {
        font-size: 14px;
    }
    
    .wpcc-event-indicator {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .wpcc-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .wpcc-event-item {
        flex-direction: column;
    }
    
    .wpcc-event-date-badge {
        width: 60px;
        height: 60px;
		margin:auto;
		background: #fff;
		transform: scale(1);
		border: 1px solid #941263;
		color: #941263;
    }
    
    .wpcc-date-day {
        font-size: 24px;
    }
    
    .wpcc-event-title {
		font-size: 20px;
		line-height: 1.2;
		margin-bottom: 0.5em;
	}
	
	.wpcc-event-meta {
		margin-bottom: 15px;
		display: block;
	}
	
	.wpcc-event-meta strong{
		font-weight:normal !important;
	}
	
	.wpcc-event-actions {
		justify-content: center;
	}
    
    .wpcc-event-header,
    .wpcc-event-content,
    .wpcc-event-footer {
        padding: 20px;
    }
}
