/* Envato Elements Shortcode Styles */

.ees-container {
    width: 100%;
    margin: 20px 0;
}

.ees-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.ees-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.ees-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ees-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ees-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.ees-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ees-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.ees-video-wrapper:hover .ees-thumbnail {
    opacity: 0;
}

.ees-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.ees-crown-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ees-crown-icon .fa-crown {
    font-weight: 900;
    font-family: 'Font Awesome 5 Free';
    font-size: 18px;
    color: gold;
}

.ees-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ees-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ees-title:hover {
    color: #0073aa;
}

.ees-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.ees-envato-meta {
    display: flex;
    align-items: center;
}

.ees-envato-meta-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ees-avatar {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.ees-category {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ees-category:hover {
    color: #0073aa;
}

.ees-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ees-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ees-grid-3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ees-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .ees-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ees-grid-3col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
