/* Wydarzenia Featured Widget Styles */

.stdv-events-featured {
    width: 100%;
    position: relative;
    contain: layout style;
}

.stdv-featured-heading {
    margin-bottom: 32px;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stdv-featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 40px;
}

.stdv-featured-main {
    grid-row: 1 / 3;
}

.stdv-featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stdv-featured-bottom {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Hero Card */
.stdv-featured-hero {
    position: relative;
    height: 100%;
    min-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    contain: layout style;
}

.stdv-featured-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.stdv-featured-hero .stdv-featured-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.stdv-featured-hero .stdv-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.stdv-featured-hero:hover .stdv-featured-image img {
    transform: scale(1.05);
}

.stdv-featured-hero .stdv-event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8892a4;
    border: 2px dashed #d1d7e0;
}

.stdv-featured-hero .stdv-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.stdv-featured-hero .stdv-placeholder-content i {
    font-size: 64px;
    opacity: 0.7;
}

.stdv-featured-hero .stdv-placeholder-content span {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.8;
}

.stdv-featured-hero .stdv-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 50px 32px 32px;
    color: white;
}

.stdv-featured-hero .stdv-featured-title {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.stdv-featured-hero .stdv-featured-title a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.stdv-featured-hero .stdv-featured-title a:hover {
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.stdv-featured-hero .stdv-featured-excerpt {
    margin: 0 0 16px 0;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

.stdv-featured-hero .stdv-featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.stdv-featured-hero .stdv-featured-author span {
    opacity: 0.9;
}

.stdv-featured-hero .stdv-featured-date span {
    font-weight: 600;
}

/* Regular Cards */
.stdv-featured-item {
    position: relative;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    contain: layout style;
}

.stdv-featured-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stdv-featured-item .stdv-featured-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stdv-featured-item .stdv-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.stdv-featured-item:hover .stdv-featured-image img {
    transform: scale(1.03);
}

.stdv-featured-item .stdv-event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8892a4;
    border: 2px dashed #d1d7e0;
}

.stdv-featured-item .stdv-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.stdv-featured-item .stdv-placeholder-content i {
    font-size: 32px;
    opacity: 0.7;
}

.stdv-featured-item .stdv-placeholder-content span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.stdv-featured-item .stdv-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 35px 18px 18px;
    color: white;
}

.stdv-featured-item .stdv-featured-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.1px;
}

.stdv-featured-item .stdv-featured-title a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stdv-featured-item .stdv-featured-title a:hover {
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Date Overlay */
.stdv-event-date-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #0300B0;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stdv-featured-hero:hover .stdv-event-date-overlay,
.stdv-featured-item:hover .stdv-event-date-overlay {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.35);
}

/* View More Button */
.stdv-featured-more {
    text-align: center;
    margin-top: 40px;
}

.stdv-view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2c5aa0 0%, #3b6bb3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.2);
    letter-spacing: 0.3px;
}

.stdv-view-all-button:hover {
    background: linear-gradient(135deg, #1e4080 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.3);
    color: white;
    text-decoration: none;
}

.stdv-view-all-button:after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.stdv-view-all-button:hover:after {
    transform: translateX(3px);
}

/* Focus and Accessibility Styles */
.stdv-featured-hero:focus,
.stdv-featured-item:focus {
    outline: 3px solid #2c5aa0;
    outline-offset: 3px;
    border-radius: 16px;
}

.stdv-featured-hero .stdv-featured-title a:focus,
.stdv-featured-item .stdv-featured-title a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.stdv-view-all-button:focus {
    outline: 3px solid #2c5aa0;
    outline-offset: 3px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .stdv-featured-hero,
    .stdv-featured-item,
    .stdv-featured-hero .stdv-featured-image img,
    .stdv-featured-item .stdv-featured-image img,
    .stdv-event-date-overlay,
    .stdv-view-all-button,
    .stdv-view-all-button:after {
        transition: none !important;
    }
    
    .stdv-featured-hero:hover,
    .stdv-featured-item:hover {
        transform: none !important;
    }
    
    .stdv-featured-hero:hover .stdv-featured-image img,
    .stdv-featured-item:hover .stdv-featured-image img {
        transform: none !important;
    }
}

/* Error states */
.stdv-error,
.stdv-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Large Desktop */
@media (min-width: 1200px) {
    .stdv-featured-heading {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .stdv-featured-grid {
        gap: 28px;
        margin-bottom: 48px;
    }
    
    .stdv-featured-hero {
        min-height: 500px;
    }
    
    .stdv-featured-hero .stdv-featured-image {
        min-height: 500px;
    }
    
    .stdv-featured-hero .stdv-featured-title {
        font-size: 30px;
    }
    
    .stdv-featured-item {
        height: 160px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .stdv-featured-heading {
        font-size: 28px;
        margin-bottom: 28px;
    }
    
    .stdv-featured-grid {
        gap: 20px;
        margin-bottom: 36px;
    }
    
    .stdv-featured-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .stdv-featured-hero {
        min-height: 380px;
    }
    
    .stdv-featured-hero .stdv-featured-image {
        min-height: 380px;
    }
    
    .stdv-featured-hero .stdv-featured-title {
        font-size: 22px;
    }
    
    .stdv-featured-item {
        height: 120px;
    }
    
    .stdv-featured-item .stdv-featured-title {
        font-size: 14px;
    }
    
    .stdv-event-date-overlay {
        font-size: 12px;
        padding: 6px 12px;
        top: 14px;
        left: 14px;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .stdv-featured-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .stdv-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    
    .stdv-featured-main {
        grid-row: auto;
    }
    
    .stdv-featured-sidebar {
        order: 2;
    }
    
    .stdv-featured-bottom {
        grid-column: 1;
        order: 3;
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stdv-featured-hero {
        min-height: 300px;
    }
    
    .stdv-featured-hero .stdv-featured-image {
        min-height: 300px;
    }
    
    .stdv-featured-hero .stdv-featured-content {
        padding: 30px 20px 20px;
    }
    
    .stdv-featured-hero .stdv-featured-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .stdv-featured-hero .stdv-featured-meta {
        font-size: 13px;
        gap: 12px;
    }
    
    .stdv-featured-item {
        height: 200px;
    }
    
    .stdv-featured-item .stdv-featured-content {
        padding: 40px 20px 20px;
    }
    
    .stdv-featured-item .stdv-featured-title {
        font-size: 16px;
    }
    
    .stdv-featured-item .stdv-featured-title a {
        -webkit-line-clamp: 3;
    }
    
    .stdv-event-date-overlay {
        font-size: 11px;
        padding: 4px 8px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .stdv-featured-hero .stdv-featured-title {
        font-size: 18px;
    }
    
    .stdv-featured-item .stdv-featured-title {
        font-size: 15px;
    }
    
    .stdv-event-date-overlay {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}