/* ============================================
   PORTFOLIO DETAIL - DESIGN MODERNE
   ============================================ */

:root {
    /* Couleurs principales - Plus modernes et luxueuses */
    --color-primary: #28a745;
    --color-primary-dark: #1e7e34;
    --color-primary-light: #48c774;
    --color-accent: #e83e8c;
    --color-accent-light: #f8d7da;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-hero: linear-gradient(0deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.4) 100%);
    --gradient-accent: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    
    /* Texte */
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-light: #94a3b8;
    --color-text-white: #ffffff;
    
    /* Arrière-plans */
    --color-bg-page: #f8fafc;
    --color-bg-card: #ffffff;
    --color-bg-light: #f1f5f9;
    --color-bg-dark: #1e293b;
    
    /* Effets */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-accent: 0 10px 15px -3px rgba(244, 63, 94, 0.3), 0 4px 6px -2px rgba(244, 63, 94, 0.15);
    --shadow-primary: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.15);
    
    /* Bordures */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Structure générale */
.portfolio-detail-page {
    background-color: var(--color-bg-page);
    min-height: 100vh;
    padding-bottom: 4rem;
    color: var(--color-text-primary);
}

/* ============================================
   HERO SECTION - STYLE MODERNE
   ============================================ */

.portfolio-hero {
    position: relative;
    width: 100%;
    z-index: 1;
}

.portfolio-hero-image {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: var(--color-bg-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}


.portfolio-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.portfolio-hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.portfolio-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 0;
    z-index: 2;
    color: var(--color-text-white);
}

.portfolio-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.portfolio-hero-category {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.portfolio-hero-category i {
    margin-right: 0.5rem;
}

.portfolio-hero-placeholder {
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 5rem;
}

.portfolio-hero-placeholder .portfolio-hero-content {
    text-align: center;
}

/* ============================================
   SECTION CONTENU PRINCIPAL
   ============================================ */

.portfolio-content {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

/* Styles communs aux cartes */
.portfolio-description-card,
.engagement-metrics-card,
.discussion-container,
.creator-profile-card,
.project-details-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.portfolio-description-card:hover,
.engagement-metrics-card:hover,
.discussion-container:hover,
.creator-profile-card:hover,
.project-details-card:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-bg-light);
}

/* Carte de description */
.portfolio-description-card {
    padding: 1.5rem;
}

.portfolio-description-content {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.portfolio-description-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-light);
}

.portfolio-description-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Carte des métriques */
.engagement-metrics-card {
    padding: 1.5rem;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0.5rem 0;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card-modern {
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.stat-card-modern:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25);
    background: linear-gradient(145deg, var(--color-bg-light), #ffffff);
}

.stat-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon-views {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.4rem;
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.2);
    transform: rotate(0);
    transition: all 0.3s ease-in-out;
}

.stat-icon-views:hover {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.3);
}

.stat-icon-likes {
    background: var(--gradient-accent);
    color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
}

.stat-icon-comments {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Boutons d'interaction */
.interaction-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-bg-light);
}

.btn-like,
.btn-comment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8em;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
}

.btn-like {
    background: var(--color-bg-light);
    color: var(--color-text-primary);
    border: none;
}

.btn-like:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.btn-like.liked {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-like-icon,
.btn-comment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
}

.btn-comment {
    background: var(--color-bg-light);
    color: var(--color-text-primary);
}

.btn-comment:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Section discussion */
.discussion-container {
    padding: 1.5rem;
}

.discussion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.discussion-count {
    background: var(--color-bg-light);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Formulaire de commentaire */
.comment-form-container {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.comment-form-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-form-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.comment-user-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.comment-form-body {
    padding: 1rem 1.5rem;
}

.comment-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-bg-light);
    border-radius: var(--radius-md);
    background: white;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-normal);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
}

.comment-form-hint {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-submit-comment:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

/* Message pour les non-connectés */
.comment-login-prompt {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.comment-login-prompt i {
    font-size: 3rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}



.btn-join i {
    font-size: 1em !important;
    padding-top: 10px;
    color: white !important;
}

.btn-join:hover {
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

/* Liste des commentaires */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--color-bg-light);
}

.comment-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-bg-card);
}

.comment-main {
    display: flex;
    padding: 1.5rem;
    gap: 1rem;
}

.comment-avatar-container {
    flex-shrink: 0;
}

.comment-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.premium-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #604e00;
}

.vitrine-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.comment-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-body {
    margin-bottom: 0.75rem;
}

.comment-text {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.comment-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-comment-action {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-comment-action:hover {
    color: var(--color-accent);
    background-color: var(--color-accent-light);
}

/* État vide */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.comments-empty-icon {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comments-empty-text h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.comments-empty-text p {
    color: var(--color-text-secondary);
}

/* ============================================
   SIDEBAR - PROFIL AUTEUR
   ============================================ */

.creator-profile-card {
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}



.creator-profile-header {
    padding: 2rem 1.5rem;
    text-align: center;
    color: black;
}

.creator-avatar-container {
    margin-bottom: 1rem;
}

.creator-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.creator-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: black;
}

.creator-title {
    font-size: 1rem;
    color: black;
    margin-bottom: 1rem;
}

.creator-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.creator-profile-body {
    padding: 1.5rem;
}

.creator-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.creator-info-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.creator-profile-footer {
    padding: 0 1.5rem 1.5rem;
}

.btn-creator-profile {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-creator-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease-in-out;
}

.btn-creator-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-creator-profile:hover::before {
    left: 100%;
}

.btn-creator-profile:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

/* ============================================
   DETAILS DU PROJET
   ============================================ */

.project-details-card {
    padding: 1.5rem;
}

.project-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.project-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.detail-label i {
    color: var(--color-primary);
}

.detail-value {
    font-weight: 600;
    color: var(--color-text-primary);
}

.project-detail-action {
    margin-top: 1.25rem;
    text-align: center;
}

.btn-project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-project-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991.98px) {
    .portfolio-hero-title {
        font-size: 2.5rem;
    }
    
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card-modern:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .portfolio-hero-image,
    .portfolio-hero-placeholder {
        height: 50vh;
        min-height: 350px;
    }
    
    .portfolio-hero-title {
        font-size: 2rem;
    }
    
    .metrics-container {
        grid-template-columns: repeat(3, 1fr);
         gap: 0.5rem;
    }
    .stat-label  {
        display: none;
    }
    
    .stat-card-modern:last-child {
        grid-column: auto;
    }
    
    .interaction-buttons {
        grid-template-columns: 1fr;
    }
    
    .creator-avatar {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 575.98px) {
    .portfolio-hero-image,
    .portfolio-hero-placeholder {
        height: 40vh;
        min-height: 300px;
    }
    
    .portfolio-hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .portfolio-content {
        padding-top: 0;
    }
    
    .comment-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar-container {
        margin-bottom: 0.5rem;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .btn-submit-comment {
        width: 100%;
    }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

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

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideInUp 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 1s ease-in-out infinite;
}

.stat-icon-comments {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */

.action-buttons {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn:not(.action-btn-secondary) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.action-btn:not(.action-btn-secondary):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.action-btn.liked {
    background: linear-gradient(135deg, #f5576c 0%, #c0392b 100%);
}

.action-btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.action-btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1.1rem;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.comments-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.comments-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.comments-title i {
    color: var(--primary-color);
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   COMMENT FORM
   ============================================ */

.comment-form-wrapper {
    margin-bottom: 40px;
}

.comment-form-input {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.comment-textarea {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: var(--transition);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-left: 63px;
}

.btn-submit-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-submit-comment i {
    font-size: 1.1rem;
}

/* ============================================
   COMMENT LOGIN PROMPT
   ============================================ */

.comment-login-prompt {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.comment-login-prompt i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-login-prompt p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 217, 250, 0.4);
    color: white;
}

/* ============================================
   COMMENTS LIST
   ============================================ */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    display: flex;
    gap: 15px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--color-primary);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
}

.comment-card:hover {
    background: #f0f2f5;
    box-shadow: var(--shadow-sm);
}

.comment-avatar-wrapper {
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--text-dark);
}

.badge-vitrine {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-delete-comment:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
    word-wrap: break-word;
}

/* ============================================
   NO COMMENTS STATE
   ============================================ */

.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-comments i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-comments span {
    font-size: 1rem;
    color: var(--text-light);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    overflow: hidden;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
}

.sidebar-card-header i {
    font-size: 1.3rem;
}

.sidebar-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-card-body {
    padding: 25px;
}

.detail-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.detail-link {
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.detail-link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* ============================================
   AUTHOR CARD
   ============================================ */

.author-card-header {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-card-body {
    padding: 25px;
    text-align: center;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .portfolio-hero-image {
        height: 50vh;
        min-height: 350px;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
     
    .stat-icon {
        width: 30px;
        height: 30px;
    }
    .stat-icon i {
        font-size: 1rem;
    }
    .portfolio-hero-image {
        height: 40vh;
        min-height: 300px;
    }
    
    .portfolio-header,
    .portfolio-stats-actions,
    .comments-section,
    .sidebar-card {
        padding: 20px;
    }
    
    .portfolio-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        flex-direction: row;
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .comment-form-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-form-actions {
        padding-left: 0;
    }
    
    .comment-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero-image {
        height: 35vh;
        min-height: 250px;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
    }
    
    .comments-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .author-avatar-large {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.2);
    }
}

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

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.5rem;
}

.notification span {
    font-weight: 500;
    color: var(--text-dark);
}

.notification-success {
    border-left: 4px solid var(--primary-color);
}

.notification-success i {
    color: var(--primary-color);
}

.notification-error {
    border-left: 4px solid var(--accent-color);
}

.notification-error i {
    color: var(--accent-color);
}

/* ============================================
   SMOOTH SCROLLING
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   LOADING STATES
   ============================================ */

.stat-number,
.stat-icon {
    transition: var(--transition);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

