/**
 * Evenimente Cluj - Frontend Styles
 * Modern, Professional Design
 */

/* ===========================
   CONTAINER & LAYOUT
   =========================== */
.smart-events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===========================
   FILTERS
   =========================== */
.ec-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ec-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.ec-reset-btn {
    margin-top: 45px;
}

.ec-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}

.ec-filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ec-filter-select:hover {
    border-color: #ff9c00;
}

.ec-filter-select:focus {
    outline: none;
    border-color: #ff9c00;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.ec-reset-btn {
    padding: 8px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    height: auto !important;
    min-height: auto !important;
    align-self: flex-start !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px !important;
    background: #6c757d;
    color: white;
}

.ec-reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===========================
   EVENIMENTE LISTA
   =========================== */
.ec-evenimente-lista {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===========================
   EVENIMENT CARD - HORIZONTAL LAYOUT
   =========================== */
.ec-eveniment-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.ec-eveniment-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* ===========================
   CARD IMAGE
   =========================== */
.ec-card-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.ec-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ec-eveniment-card:hover .ec-card-image img {
    transform: scale(1.05);
}

.ec-no-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 80px;
}

/* ===========================
   CARD CONTENT
   =========================== */
.ec-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ec-card-title {
    margin: 0 0 20px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.ec-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-card-title a:hover {
    color: #ff9c00;
}

/* ===========================
   META INFORMATION
   =========================== */
.ec-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ec-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.ec-icon {
    font-size: 18px;
}

.ec-meta-pret {
    margin-left: auto;
    background: #FFC107;
    padding: 6px 15px;
    border-radius: 20px;
    color: #2c3e50;
    font-weight: 600;
}

/* ===========================
   EXCERPT
   =========================== */
.ec-card-excerpt {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.ec-read-more-inline {
    background: none;
    border: none;
    color: #ff9c00;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline;
    line-height: inherit;
    vertical-align: baseline;
}

.ec-read-more-inline:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.ec-excerpt-short,
.ec-excerpt-full {
    line-height: 1.7;
}

.ec-card-excerpt p {
    margin: 0;
}

/* ===========================
   ACTIONS / BUTTONS
   =========================== */
.ec-card-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ec-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ec-btn-primary {
    background: #ff9c00;
    color: white;
}

.ec-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.ec-btn-secondary {
    background: transparent;
    color: #ff9c00;
    border: 2px solid #ff9c00;
}

.ec-btn-secondary:hover {
    background: #ff9c00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===========================
   NO EVENTS MESSAGE
   =========================== */
.ec-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ec-no-events p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

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

.ec-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ec-pagination .page-numbers:hover,
.ec-pagination .page-numbers.current {
    background: #ff9c00;
    color: white;
    border-color: #ff9c00;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablets */
@media (max-width: 992px) {
    .ec-eveniment-card {
        grid-template-columns: 1fr;
    }
    
    .ec-card-image {
        min-height: 300px;
    }
    
    .ec-reset-btn {
        margin-top: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .smart-events-container {
        padding: 5px;
    }
    
    .ec-evenimente-lista {
        gap: 10px;
    }
    
    .ec-filters {
        padding: 15px;
        gap: 12px;
        border-radius: 0;
    }
    
    .ec-filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .ec-reset-btn {
        width: 100%;
        margin-top: 0 !important;
    }
    
    .ec-eveniment-card {
        gap: 0;
        border-radius: 0;
        margin-bottom: 10px;
    }
    
    .ec-card-content {
        padding: 15px;
    }
    
    .ec-card-title {
        font-size: 22px;
    }
    
    .ec-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ec-meta-pret {
        margin-left: 0;
        width: fit-content;
    }
    
    .ec-card-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .ec-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .ec-card-title {
        font-size: 20px;
    }
    
    .ec-card-excerpt {
        font-size: 15px;
    }
}

/* ===========================
   SINGLE EVENT PAGE - CARD STYLE (LIKE LIST)
   =========================== */

.single-eveniment .ec-single-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.single-eveniment .ec-single-card-image {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.single-eveniment .ec-single-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-eveniment .ec-single-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.single-eveniment .ec-single-card-title {
    margin: 0 0 20px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

.single-eveniment .ec-single-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.single-eveniment .ec-single-card-meta .ec-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

.single-eveniment .ec-single-card-meta .ec-icon {
    font-size: 18px;
}

.single-eveniment .ec-single-card-meta .ec-meta-pret {
    margin-left: auto;
    background: #FFC107;
    padding: 6px 15px;
    border-radius: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.single-eveniment .ec-single-card-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Separator */
.single-eveniment .ec-single-separator {
    border: none;
    border-top: 3px solid #e0e0e0;
    margin: 40px 0;
}

/* Description below */
.single-eveniment .ec-single-description {
    margin-bottom: 60px;
}

/* Professional Content Styling */
.single-eveniment .ec-content-styled {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
}

.single-eveniment .ec-content-styled p {
    margin-bottom: 1.5em;
}

.single-eveniment .ec-content-styled h1,
.single-eveniment .ec-content-styled h2,
.single-eveniment .ec-content-styled h3,
.single-eveniment .ec-content-styled h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.single-eveniment .ec-content-styled h2 {
    font-size: 26px;
    border-bottom: 3px solid #ff9c00;
    padding-bottom: 10px;
}

.single-eveniment .ec-content-styled h3 {
    font-size: 22px;
}

.single-eveniment .ec-content-styled h4 {
    font-size: 19px;
}

.single-eveniment .ec-content-styled ul,
.single-eveniment .ec-content-styled ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.single-eveniment .ec-content-styled li {
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.single-eveniment .ec-content-styled strong {
    color: #ff9c00;
    font-weight: 600;
}

.single-eveniment .ec-content-styled a {
    color: #ff9c00;
    text-decoration: none;
    border-bottom: 1px solid #ff9c00;
    transition: all 0.3s ease;
}

.single-eveniment .ec-content-styled a:hover {
    color: #e55a2b;
    border-bottom-color: #e55a2b;
}

.single-eveniment .ec-content-styled blockquote {
    border-left: 4px solid #ff9c00;
    padding: 15px 20px;
    margin: 1.5em 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .single-eveniment .ec-single-card {
        grid-template-columns: 1fr;
    }
    
    .single-eveniment .ec-single-card-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .single-eveniment .ec-single-card {
        gap: 0;
    }
    
    .single-eveniment .ec-single-card-content {
        padding: 20px;
    }
    
    .single-eveniment .ec-single-card-title {
        font-size: 22px;
    }
    
    .single-eveniment .ec-single-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-eveniment .ec-single-card-meta .ec-meta-pret {
        margin-left: 0;
        width: fit-content;
    }
    
    .single-eveniment .ec-content-styled {
        font-size: 16px;
    }
    
    .single-eveniment .ec-content-styled h2 {
        font-size: 22px;
    }
}

/* ===========================
   CAROUSEL STYLES
   =========================== */
.ec-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.ec-carousel-container {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.ec-carousel-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ec-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ec-carousel-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ec-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ec-carousel-item:hover .ec-carousel-image img {
    transform: scale(1.05);
}

.ec-carousel-content {
    padding: 20px;
}

.ec-carousel-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ec-carousel-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ec-carousel-title a:hover {
    color: #ff9c00;
}

.ec-carousel-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.ec-carousel-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ec-carousel-meta-item .ec-icon {
    font-size: 16px;
}

.ec-carousel-controls {
    display: flex;
    gap: 10px;
}

.ec-carousel-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: #ff9c00;
    color: white;
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ec-carousel-btn:hover:not(:disabled) {
    background: #e55a2b;
    transform: scale(1.1);
}

.ec-carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.ec-btn-small {
    font-size: 12px;
    padding: 10px 20px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .ec-carousel-item {
        flex: 0 0 280px;
    }
}

/* ===========================
   GRID VIEW
   =========================== */
.ec-view-toggle {
    margin-bottom: 20px;
}

.ec-view-btn {
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    background: white;
    color: #666;
}

.ec-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #ff9c00;
    color: #ff9c00;
}

.ec-view-btn.active {
    background: #ff9c00 !important;
    color: white !important;
    border-color: #ff9c00 !important;
}

/* Grid Layout - Override flex display */
.ec-evenimente-lista.grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    flex-direction: initial;
}

.ec-evenimente-lista.grid-view .ec-eveniment-card {
    display: block !important;
    grid-template-columns: initial !important;
    background: transparent !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
}

.ec-evenimente-lista.grid-view .ec-eveniment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ec-evenimente-lista.grid-view .ec-card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.ec-evenimente-lista.grid-view .ec-card-image a {
    display: block;
    line-height: 0;
}

.ec-evenimente-lista.grid-view .ec-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.ec-evenimente-lista.grid-view .ec-no-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-evenimente-lista.grid-view .ec-no-image span {
    font-size: 80px;
}

/* Hide all other content in grid view - only show image */
.ec-evenimente-lista.grid-view .ec-card-content,
.ec-evenimente-lista.grid-view .ec-card-meta,
.ec-evenimente-lista.grid-view .ec-card-actions {
    display: none !important;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .ec-evenimente-lista.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ec-evenimente-lista.grid-view {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .ec-evenimente-lista.grid-view .ec-eveniment-card {
        display: block !important;
        grid-template-columns: initial !important;
    }
    
    .ec-view-toggle {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .ec-carousel-item {
        flex: 0 0 250px;
    }
    
    .ec-carousel-controls {
        margin-top: 10px;
    }
    
    .single-eveniment .ec-content-styled {
        font-size: 16px;
    }
    
    .single-eveniment .ec-content-styled h2 {
        font-size: 22px;
    }
}
