/* ============================
   MY PORTFOLIOS PAGE STYLES
   ============================ */

/* Portfolio Items List */
.portfolio-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.portfolio-item-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}

.portfolio-item-card.premium-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Pasif varlık – beyaz arka plan hafif kırmızı ton */
.portfolio-item-card.portfolio-card-pasif {
    background: #fff8f8;
    border-color: rgba(239, 68, 68, 0.2);
}

.portfolio-item-card:hover,
.portfolio-item-card.premium-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #0c3d34;
    transform: translateY(-2px);
}

.portfolio-item-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 180px;
}

.portfolio-item-image.premium {
    height: 200px;
}

.portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.portfolio-item-card:hover .portfolio-item-overlay {
    background: rgba(0, 0, 0, 0.1);
}

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

.portfolio-item-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-item-status .badge {
    font-size: 12px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.portfolio-item-status .badge-pasif-portfolio {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.portfolio-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.portfolio-item-title a {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
    color: #333;
    transition: color 0.3s ease;
}

.portfolio-item-title a:hover {
    color: #0c3d34;
}

.portfolio-item-title .badge-pasif-portfolio {
    flex-shrink: 0;
    align-self: flex-start;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
}

.portfolio-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-badge {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.meta-badge:hover {
    background-color: rgba(12, 61, 52, 0.08);
}

.meta-badge i {
    margin-right: 5px;
    color: #0c3d34;
}

.portfolio-item-price {
    font-size: 18px;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 12px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-right: 5px;
}

.price-currency {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.portfolio-item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-badge strong {
    color: #333;
    margin: 0 3px;
}

.stat-badge i {
    color: #0c3d34;
}


.portfolio-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portfolio-item-actions.premium-actions {
    gap: 12px;
}

.portfolio-item-actions .btn,
.btn-action,
.btn-action-primary {
    font-size: 14px;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-action-primary {
    width: 100%;
}

.btn-action {
    width: 100%;
}

.btn-action:hover,
.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Statistics List */
.statistics-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: #e8f0fe;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #0c3d34;
}

/* Empty State */
.empty-state {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
}

.empty-state.premium-empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4ff 100%);
    border: 2px dashed #d0d8ff;
}

.empty-state-icon {
    opacity: 0.15;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-items-list {
        gap: 16px;
    }

    .portfolio-item-image,
    .portfolio-item-image.premium {
        height: 150px;
    }

    .portfolio-item-card {
        padding: 16px;
    }

    .statistics-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .portfolio-item-stats {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .portfolio-item-meta {
        gap: 8px;
    }

    .meta-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    .price-value {
        font-size: 16px;
    }

    .portfolio-item-actions {
        gap: 8px;
    }

    .portfolio-item-actions .btn,
    .btn-action,
    .btn-action-primary {
        padding: 8px 12px;
        font-size: 13px;
    }
}.portfolio-item-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.portfolio-item-stats i {
    color: #0c3d34;
}

.portfolio-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-item-actions .btn {
    font-size: 13px;
    padding: 8px 12px;
    font-weight: 500;
}

/* Statistics List */
.statistics-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #0c3d34;
}

/* Empty State */
.empty-state {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-item-image {
        height: 150px;
    }

    .statistics-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .portfolio-item-stats {
        flex-wrap: wrap;
        font-size: 12px;
    }
}

/* Delete Modal Styles */
#deletePortfolioModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#deletePortfolioModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

#deletePortfolioModal .modal-header .modal-title {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

#deletePortfolioModal .modal-header .modal-title i {
    color: white;
    margin-right: 8px;
}

#deletePortfolioModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#deletePortfolioModal .modal-header .btn-close:hover {
    opacity: 1;
}

#deletePortfolioModal .modal-body {
    padding: 24px;
}

#deletePortfolioModal .modal-body p {
    margin-bottom: 16px;
    color: #444;
    font-size: 14px;
}

#deletePortfolioModal .modal-body p strong {
    color: #111;
    font-weight: 600;
}

#deletePortfolioModal .modal-body .text-danger {
    font-weight: 500;
    color: #dc3545;
}

#deletePortfolioModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#deletePortfolioModal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#deletePortfolioModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

#deletePortfolioModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 16px 24px;
}

#deletePortfolioModal .btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#deletePortfolioModal .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

#deletePortfolioModal .btn-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#deletePortfolioModal .btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #bd2130, #a71e28);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#deletePortfolioModal .btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#deletePortfolioModal .alert-sm {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
}

#deletePortfolioModal .alert i {
    margin-right: 6px;
}
