/* Elementor Portfolio Tabs Styles */

.ept-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(var(--ept-columns, 3), 1fr);
    gap: 30px;
    margin: 20px 0;
}

.ept-portfolio-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.ept-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.ept-portfolio-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.ept-portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ept-portfolio-item:hover .ept-portfolio-thumbnail img {
    transform: scale(1.05);
}

.ept-portfolio-content {
    padding: 20px;
}

.ept-portfolio-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
}

.ept-portfolio-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ept-portfolio-title a:hover {
    color: #007cba;
}

.ept-portfolio-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.ept-portfolio-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-top: 10px;
}

.ept-portfolio-excerpt p {
    margin: 0;
}

/* Loading and Error States */
.ept-loading,
.ept-error {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1em;
    color: #666;
}

.ept-loading {
    position: relative;
}

.ept-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ept-error {
    color: #d63638;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ept-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .ept-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ept-portfolio-content {
        padding: 15px;
    }
    
    .ept-portfolio-title {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .ept-portfolio-grid {
        gap: 15px;
    }
    
    .ept-portfolio-content {
        padding: 12px;
    }
}

/* Elementor Integration Styles */
.elementor-tab-content .ept-portfolio-grid {
    margin-top: 0;
}

.elementor-tab-content .ept-loading,
.elementor-tab-content .ept-error {
    margin: 20px 0;
}

/* Custom Grid Variations */
.ept-portfolio-grid[style*="--ept-columns: 2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ept-portfolio-grid[style*="--ept-columns: 4"] {
    grid-template-columns: repeat(4, 1fr);
}

.ept-portfolio-grid[style*="--ept-columns: 5"] {
    grid-template-columns: repeat(5, 1fr);
}

/* Hover Effects */
.ept-portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 124, 186, 0.1), rgba(0, 124, 186, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ept-portfolio-item:hover::before {
    opacity: 1;
}

/* Accessibility */
.ept-portfolio-title a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ept-portfolio-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .ept-portfolio-item:hover {
        transform: none;
    }
} 