/* DIO EVENTS ARCHITECT - Frontend Styles */
/* Version v.1.510a - EXACT Mockup Matching (Oswald font, 1:1, Left-Aligned) */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700;900&display=swap');

/* Reset and Core Font */
.dio-events-timeline,
.dio-single-evt-wrap {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.dio-evt-card-link, 
.dio-evt-card-link:hover,
.dio-evt-title a,
.dio-evt-title a:hover,
.dio-card-buy-btn,
.dio-card-buy-btn:hover,
.dio-card-location-txt,
.dio-card-city-name {
    text-decoration: none !important;
}

/* --- GRID LAYOUT --- */
.dio-events-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.dio-evt-card {
    background: #1c252e; 
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1; /* EXACT 1:1 SQUARE */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s transform ease;
}

.dio-evt-card:hover {
    transform: translateY(-5px);
}

/* --- IMAGE / GRADIENT --- */
.dio-evt-thumb {
    height: 45%; /* Slightly less than half */
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.dio-evt-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Darker, higher-reaching gradient (100% - 85% - 0%) */
    background: linear-gradient(to top, 
        rgba(28, 37, 46, 1) 0%, 
        rgba(28, 37, 46, 0.95) 40%, 
        transparent 100%);
}

/* --- DATE BADGE --- */
.dio-evt-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #111827;
    padding: 10px;
    border-radius: 14px;
    text-align: center;
    min-width: 55px;
    border: 2px solid #312e81;
    z-index: 5;
}

.dio-evt-date-badge .day { display: block; font-size: 24px; font-weight: 900; line-height: 1; }
.dio-evt-date-badge .month { font-size: 10px; font-weight: 900; margin-top: 3px; display: block; text-transform: uppercase; }

/* --- CONTENT (LEFT ALIGN) --- */
.dio-evt-info { 
    padding: 0 30px 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; /* ALIGN LEFT */
    text-align: left;
    margin-top: -35px; /* Overlap image base */
    position: relative;
    z-index: 2;
}

/* EVENT NAME (Massive & One Line) */
.dio-evt-title { 
    font-size: 52px; 
    font-weight: 900; 
    letter-spacing: -2px;
    line-height: 0.95;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    width: 100%;
    white-space: nowrap; /* FORCE ONE LINE */
    overflow: hidden;
    text-overflow: ellipsis;
}
.dio-evt-title a { color: #fff; }

/* META ROW */
.dio-card-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.dio-card-type {
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 6px;
}

.dio-card-location-txt {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* City Name (Massive, approx 70% height logic) */
.dio-card-city-name {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: -5px;
    margin-bottom: 20px;
    line-height: 1;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- BUY TICKET BUTTON --- */
.dio-card-buy-btn {
    width: 90%; /* Doesn't touch edges */
    margin: auto auto 20px auto; /* Centered with bottom margin */
    background: #2a4466;
    color: #fff !important;
    font-size: 38px; /* Huge text */
    font-weight: 900;
    padding: 22px;
    border-radius: 35px; /* Pill Shape */
    text-transform: uppercase;
    text-align: center;
    display: block;
    transition: 0.3s;
    line-height: 1;
    border: none;
    cursor: pointer;
}

.dio-card-buy-btn:hover {
    background: #7000C5;
    transform: scale(1.03);
}

/* --- TASUTA STICKER --- */
.dio-free-sticker {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 10;
}

.dio-free-sticker span {
    position: absolute;
    display: block;
    width: 180px;
    padding: 12px 0;
    background-color: #71a879; /* Requested color */
    color: #fff;
    font-size: 16px; /* Larger text */
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    right: -45px;
    top: 25px;
    transform: rotate(45deg);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .dio-events-grid-wrapper { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .dio-events-grid-wrapper { grid-template-columns: 1fr; }
    .dio-evt-card { border-radius: 20px; }
    .dio-evt-title { font-size: 42px; }
    .dio-card-city-name { font-size: 38px; }
    .dio-card-buy-btn { font-size: 28px; }
}