/* Portfolio Sayfası Özel CSS */

.portfolio-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e9ecef" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23e9ecef" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23e9ecef" opacity="0.05"/><circle cx="10" cy="50" r="0.5" fill="%23e9ecef" opacity="0.05"/><circle cx="90" cy="50" r="0.5" fill="%23e9ecef" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.portfolio-hero .container {
    position: relative;
    z-index: 2;
}

.hero-stats .stat-item {
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hero-stats .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.portfolio-filter {
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-buttons .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    font-weight: 500;
    padding: 8px 20px;
    margin: 5px;
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.filter-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color, #e91e63), var(--secondary-color, #4caf50));
    border: none;
}

.portfolio-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-image {
    transition: transform 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(233, 30, 99, 0.8), rgba(76, 175, 80, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px 15px 0 0;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    background: #f8f9fa;
    margin: 15px -15px -15px -15px;
    padding: 15px;
    border-radius: 0 0 15px 15px;
}

.portfolio-meta small {
    display: block;
    margin-bottom: 8px;
    color: #6c757d;
    font-weight: 500;
}

.portfolio-meta i {
    color: var(--primary-color, #e91e63);
    margin-right: 8px;
    width: 16px;
}

.empty-state {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.empty-state i {
    opacity: 0.3;
    margin-bottom: 20px;
}

.portfolio-cta {
    background: linear-gradient(135deg, var(--primary-color, #e91e63) 0%, var(--secondary-color, #4caf50) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.portfolio-cta .container {
    position: relative;
    z-index: 2;
}

.portfolio-cta .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.portfolio-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-body {
    padding: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-stats .col-md-3 {
        margin-bottom: 20px;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 2rem;
    }
    
    .portfolio-cta .col-lg-4 {
        text-align: center !important;
        margin-top: 30px;
    }
    
    .filter-buttons .btn {
        margin-bottom: 10px;
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .portfolio-card {
        margin-bottom: 20px;
    }
    
    .portfolio-overlay {
        border-radius: 15px;
    }
    
    .portfolio-card:hover .portfolio-overlay {
        opacity: 0.8;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-stats .stat-item {
        padding: 15px 10px;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-card .card-body {
        padding: 15px;
    }
    
    .portfolio-meta {
        margin: 10px -15px -15px -15px;
        padding: 10px 15px;
    }
    
    .filter-buttons {
        text-align: center;
    }
    
    .filter-buttons .btn {
        display: inline-block;
        margin: 3px;
        font-size: 0.85rem;
        padding: 5px 12px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading States */
.portfolio-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
}

.badge.today-delivery {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.badge.discount-badge {
    background: linear-gradient(45deg, #fd7e14, #ffc107);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color, #e91e63), var(--secondary-color, #4caf50));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-color, #4caf50), var(--primary-color, #e91e63));
}
