/* Portfolio Gallery Unique Styles */
.portfolio-gallery-container {
    padding: 1rem 0;
    background: #f8fafc;
    min-height: 100vh;
    width: 100%;
}

/* Fixed Header Section */
.portfolio-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    width: 100%;
}

.portfolio-gallery-title {
    color: #6366f1;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    max-width: 200px;
}

/* User Info on Card */
.portfolio-card-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.portfolio-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #6366f1;
    flex-shrink: 0;
}

.portfolio-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.portfolio-username {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Pinterest Style Masonry Grid - Full Width */
.portfolio-masonry-grid {
    columns: 6 280px;
    column-gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.portfolio-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    animation: masonryLoad 0.5s ease forwards;
}

.portfolio-masonry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.portfolio-masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.portfolio-masonry-image {
    position: relative;
    overflow: hidden;
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-masonry-card:hover .masonry-img {
    transform: scale(1.05);
}

/* More Images Count Badge */
.portfolio-images-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.count-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Overlay */
.portfolio-masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.portfolio-masonry-card:hover .portfolio-masonry-overlay {
    opacity: 1;
}

.portfolio-masonry-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-masonry-card:hover .portfolio-masonry-content {
    transform: translateY(0);
}

.masonry-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.masonry-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-actions {
    display: flex;
    gap: 0.5rem;
}

.masonry-view-btn {
    background: #6366f1;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1;
    text-align: center;
}

.masonry-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.masonry-profile-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

.masonry-profile-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 2rem;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

/* Ultra Wide Monitors */
@media (min-width: 2000px) {
    .portfolio-masonry-grid {
        columns: 8 300px;
        max-width: 95%;
    }
}

@media (min-width: 1600px) {
    .portfolio-masonry-grid {
        columns: 7 280px;
        max-width: 95%;
    }
}

@media (min-width: 1400px) {
    .portfolio-masonry-grid {
        columns: 6 280px;
        max-width: 1800px;
    }
}

/* Standard Responsive Design */
@media (max-width: 1400px) {
    .portfolio-masonry-grid {
        columns: 5 280px;
    }
}

@media (max-width: 1200px) {
    .portfolio-masonry-grid {
        columns: 4 280px;
    }
}

@media (max-width: 992px) {
    .portfolio-masonry-grid {
        columns: 3 280px;
    }
}

@media (max-width: 768px) {
    .portfolio-gallery-container {
        padding: 0.8rem 0;
    }

    .portfolio-gallery-title {
        font-size: 2rem;
    }

    .portfolio-gallery-header {
        gap: 1rem;
    }

    .title-line {
        max-width: 100px;
    }

    .portfolio-masonry-grid {
        columns: 2 280px;
        padding: 0 1rem;
        column-gap: 1rem;
    }

    .portfolio-masonry-item {
        margin-bottom: 1rem;
    }

    .portfolio-masonry-overlay {
        padding: 1rem;
    }

    .portfolio-card-user {
        padding: 0.6rem 0.8rem;
    }

    .portfolio-user-avatar {
        width: 28px;
        height: 28px;
    }

    .portfolio-username {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .portfolio-gallery-container {
        padding: 0.5rem 0;
    }

    .portfolio-gallery-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .portfolio-gallery-header {
        gap: 0.8rem;
    }

    .title-line {
        max-width: 60px;
    }

    .portfolio-masonry-grid {
        columns: 1 280px;
        padding: 0 0.8rem;
    }

    .masonry-title {
        font-size: 1rem;
    }

    .masonry-description {
        font-size: 0.8rem;
    }

    .masonry-actions {
        flex-direction: column;
    }
}

/* Empty State */
.portfolio-masonry-grid:empty::before {
    content: 'No portfolios found';
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    padding: 3rem 1rem;
    column-span: all;
}

/* Loading Animation */
@keyframes masonryLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-masonry-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-masonry-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-masonry-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-masonry-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-masonry-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-masonry-item:nth-child(6) {
    animation-delay: 0.6s;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

/* Card Styles */
.employment-detail-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.employment-detail-card:hover {
    transform: translateY(-5px);
}

.contact-card,
.studio-quick-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.contact-card:hover,
.studio-quick-card:hover {
    transform: translateY(-3px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}

/* Studio Avatar */
.studio-avatar-detail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #6366f1;
    transition: transform 0.3s ease;
}

.studio-avatar-detail:hover {
    transform: scale(1.05);
}

.studio-avatar-small {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #6366f1;
}

/* Section Styles */
.studio-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.job-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.job-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.job-text {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Contact Items */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item {
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Apply Button */
.apply-btn {
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Badges */
.badge {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .studio-header {
        flex-direction: column;
        text-align: center;
    }

    .studio-avatar-wrapper {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .job-title {
        font-size: 1.8rem !important;
    }

    .container.py-4 {
        padding: 1rem !important;
    }

    h1.mx-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .job-title {
        font-size: 1.6rem !important;
    }

    .section-title {
        font-size: 1.2rem;
    }

    h1.mx-4 {
        font-size: 1.8rem !important;
        margin: 0 1rem !important;
    }
}


.job-detail-container .animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.job-detail-container .animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.job-detail-container .animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

/* Card Styles */
.job-detail-studio-card,
.job-detail-contact-card,
.job-detail-main-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.job-detail-studio-card:hover,
.job-detail-contact-card:hover,
.job-detail-main-card:hover {
    transform: translateY(-5px);
}

.job-detail-container .bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}

/* Studio Avatar */
.job-detail-studio-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.job-detail-studio-name {
    font-weight: 700;
    font-size: 1.4rem;
}

.job-detail-studio-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Styles */
.job-detail-card-header {
    border-bottom: none;
}

.job-detail-card-body {
    padding: 1.5rem;
}

.job-detail-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.job-detail-title {
    color: #333;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0;
}

.job-detail-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.job-detail-section:last-of-type {
    border-bottom: none;
}

.job-detail-section-title {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.job-detail-text {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Contact Items */
.job-detail-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-detail-contact-item {
    transition: transform 0.2s ease;
}

.job-detail-contact-item:hover {
    transform: translateX(5px);
}

/* Badges */
.job-detail-badge {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Action Buttons */
.job-detail-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-detail-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
}

.job-detail-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-detail-container .container.py-4 {
        padding: 1rem !important;
    }

    .job-detail-title {
        font-size: 1.8rem !important;
    }

    h1.mx-4 {
        font-size: 2rem !important;
    }

    .job-detail-studio-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .job-detail-title {
        font-size: 1.6rem !important;
    }

    .job-detail-section-title {
        font-size: 1.2rem;
    }

    h1.mx-4 {
        font-size: 1.8rem !important;
        margin: 0 1rem !important;
    }

    .job-detail-actions .btn {
        padding: 0.8rem 1rem;
    }
}

/* Scoped styles to match create_post.html */
.create-job-container .card {
    border-radius: 12px;
}

.create-job-container .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.create-job-container .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.create-job-container .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.create-job-container .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
}

.create-job-container .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

.create-job-container .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.create-job-container .btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Crispy forms adjustments */
.create-job-container .form-group {
    margin-bottom: 1.5rem;
}

.create-job-container label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .create-job-container .container.py-4 {
        padding: 1rem !important;
    }

    .create-job-container h1.mx-4 {
        font-size: 1.5rem !important;
    }

    .create-job-container .card-body {
        padding: 1.5rem !important;
    }

    .create-job-container .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .create-job-container .d-flex.justify-content-between .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .create-job-container h1.mx-4 {
        font-size: 1.3rem !important;
        margin: 0 1rem !important;
    }

    .create-job-container .card-body {
        padding: 1rem !important;
    }

    .create-job-container .form-control {
        padding: 0.6rem 0.75rem;
    }

    .create-job-container .btn {
        padding: 0.6rem 1rem;
    }
}

/* Reset and base styles */
.post-detail-container {
    overflow-x: hidden;
}

/* Reduced padding throughout */
.container-fluid.py-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Pinterest Style Masonry Grid */
.masonry-grid {
    column-count: 4;
    column-gap: 1rem;
    padding: 0 0.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    cursor: pointer;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.photo-caption {
    padding: 0.25rem 0;
}

/* Button and form styles */
.btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* Enhanced Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 95%;
    max-height: 95%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ccc;
}

/* Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    font-size: 16px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        padding: 0 0.25rem;
    }

    .masonry-item {
        margin-bottom: 0.75rem;
        padding: 0.25rem;
    }

    .container-fluid.py-3 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }

    #lightbox-img {
        max-height: 70vh;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }

    h1.mx-3 {
        font-size: 1.5rem !important;
        margin: 0 1rem !important;
    }

    .lightbox-close {
        top: -30px;
        right: -10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-counter {
        bottom: -30px;
        font-size: 14px;
    }
}


/* Portfolio Gallery Unique Styles */
.portfolio-gallery-container {
    padding: 1rem 0;
    background: #f8fafc;
    min-height: 100vh;
    width: 100%;
}

/* Fixed Header Section */
.portfolio-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    width: 100%;
}

.portfolio-gallery-title {
    color: #6366f1;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    white-space: nowrap;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    max-width: 200px;
}

/* User Profile Section */
.portfolio-user-section {
    max-width: 1800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.portfolio-user-profile {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.portfolio-user-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.portfolio-user-avatar-large {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #6366f1;
    flex-shrink: 0;
}

.portfolio-user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-avatar-placeholder-large {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
}

.portfolio-user-details {
    flex: 1;
}

.portfolio-user-name {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 0.3rem 0;
}

.portfolio-user-bio {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.portfolio-user-actions {
    flex-shrink: 0;
}

.portfolio-profile-btn-large {
    background: #6366f1;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.portfolio-profile-btn-large:hover {
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
    transform: translateY(-2px);
}

/* Pinterest Style Masonry Grid - Full Width */
.portfolio-masonry-grid {
    columns: 6 280px;
    column-gap: 1.5rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.portfolio-masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.portfolio-masonry-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.portfolio-masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.portfolio-masonry-image {
    position: relative;
    overflow: hidden;
}

.masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-masonry-card:hover .masonry-img {
    transform: scale(1.05);
}

/* More Images Count Badge */
.portfolio-images-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.count-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Overlay */
.portfolio-masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.portfolio-masonry-card:hover .portfolio-masonry-overlay {
    opacity: 1;
}

.portfolio-masonry-content {
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-masonry-card:hover .portfolio-masonry-content {
    transform: translateY(0);
}

.masonry-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.masonry-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masonry-actions {
    display: flex;
    gap: 0.5rem;
}

.masonry-view-btn {
    background: #6366f1;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex: 1;
    text-align: center;
}

.masonry-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Ultra Wide Monitors */
@media (min-width: 2000px) {
    .portfolio-masonry-grid {
        columns: 8 300px;
        max-width: 95%;
    }

    .portfolio-user-section {
        max-width: 95%;
    }
}

@media (min-width: 1600px) {
    .portfolio-masonry-grid {
        columns: 7 280px;
        max-width: 95%;
    }

    .portfolio-user-section {
        max-width: 95%;
    }
}

@media (min-width: 1400px) {
    .portfolio-masonry-grid {
        columns: 6 280px;
        max-width: 1800px;
    }
}

/* Standard Responsive Design */
@media (max-width: 1400px) {
    .portfolio-masonry-grid {
        columns: 5 280px;
    }
}

@media (max-width: 1200px) {
    .portfolio-masonry-grid {
        columns: 4 280px;
    }
}

@media (max-width: 992px) {
    .portfolio-user-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .portfolio-user-main {
        flex-direction: column;
        text-align: center;
    }

    .portfolio-masonry-grid {
        columns: 3 280px;
    }
}

@media (max-width: 768px) {
    .portfolio-gallery-container {
        padding: 0.8rem 0;
    }

    .portfolio-gallery-title {
        font-size: 2rem;
    }

    .portfolio-gallery-header {
        gap: 1rem;
    }

    .title-line {
        max-width: 100px;
    }

    .portfolio-user-section {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .portfolio-user-profile {
        padding: 1.2rem;
    }

    .portfolio-masonry-grid {
        columns: 2 280px;
        padding: 0 1rem;
        column-gap: 1rem;
    }

    .portfolio-masonry-item {
        margin-bottom: 1rem;
    }

    .portfolio-masonry-overlay {
        padding: 1rem;
    }

    .portfolio-user-avatar-large {
        width: 60px;
        height: 60px;
    }

    .portfolio-user-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .portfolio-gallery-container {
        padding: 0.5rem 0;
    }

    .portfolio-gallery-title {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .portfolio-gallery-header {
        gap: 0.8rem;
    }

    .title-line {
        max-width: 60px;
    }

    .portfolio-user-section {
        padding: 0 0.8rem;
        margin-bottom: 1rem;
    }

    .portfolio-user-profile {
        padding: 1rem;
    }

    .portfolio-user-avatar-large {
        width: 50px;
        height: 50px;
    }

    .portfolio-user-name {
        font-size: 1.2rem;
    }

    .portfolio-masonry-grid {
        columns: 1 280px;
        padding: 0 0.8rem;
    }

    .masonry-title {
        font-size: 1rem;
    }

    .masonry-description {
        font-size: 0.8rem;
    }
}

/* Empty State */
.portfolio-masonry-grid:empty::before {
    content: 'No portfolios found';
    display: block;
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    padding: 3rem 1rem;
    column-span: all;
}

/* Loading Animation */
@keyframes masonryLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-masonry-item {
    animation: masonryLoad 0.5s ease forwards;
}

.portfolio-masonry-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-masonry-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-masonry-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-masonry-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-masonry-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-masonry-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* Scoped styles to avoid conflicts */
.create-post-container .card {
    border-radius: 12px;
}

.create-post-container .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.create-post-container .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.create-post-container .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.create-post-container .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
}

.create-post-container .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

.create-post-container .btn-outline-primary {
    border-color: #6366f1;
    color: #6366f1;
}

.create-post-container .btn-outline-primary:hover {
    background: #6366f1;
    border-color: #6366f1;
    transform: translateY(-2px);
}

.create-post-container .btn-outline-secondary:hover {
    transform: translateY(-2px);
}

.formset-item {
    border-left: 3px solid #6366f1;
    transition: all 0.3s ease;
}

.formset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Delete checkbox styling */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    border: 2px solid #dc3545;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Ensure crispy forms are styled properly */
.formset-field .form-group {
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .create-post-container .container.py-4 {
        padding: 1rem !important;
    }

    .create-post-container h1.mx-4 {
        font-size: 1.5rem !important;
    }

    .create-post-container .card-body {
        padding: 1.5rem !important;
    }

    .create-post-container .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .create-post-container .d-flex.justify-content-between .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .create-post-container h1.mx-4 {
        font-size: 1.3rem !important;
        margin: 0 1rem !important;
    }

    .create-post-container .card-body {
        padding: 1rem !important;
    }

    .create-post-container .form-control {
        padding: 0.6rem 0.75rem;
    }

    .create-post-container .btn {
        padding: 0.6rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-right {
    animation: slideRight 0.6s ease-out;
}

/* Card Styles */
.profile-main-card,
.user-type-card,
.action-card,
.comments-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-main-card:hover,
.user-type-card:hover,
.action-card:hover,
.comments-card:hover {
    transform: translateY(-5px);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
}

/* Profile Avatar */
.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #6366f1;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

/* Contact Items */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item {
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Profile Name */
.profile-name {
    font-size: 2rem;
}

/* Section Titles */
.section-title {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.about-text {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Buttons */
.btn-group-vertical .btn {
    border-radius: 8px;
    padding: 0.8rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid;
    transition: all 0.3s ease;
}

.btn-group-vertical .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Comment Form */
.comment-form .form-group textarea {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: 1rem;
    transition: all 0.3s ease;
}

.comment-form .form-group textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header .row {
        flex-direction: column;
        text-align: center;
    }

    .profile-header .col-md-3 {
        margin-bottom: 1.5rem;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .container.py-4 {
        padding: 1rem !important;
    }

    h1.mx-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .profile-name {
        font-size: 1.4rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    h1.mx-4 {
        font-size: 1.8rem !important;
        margin: 0 1rem !important;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}

/* Portfolio Section Styles */
.portfolios-section {
    margin-top: 2rem;
}

.portfolios-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.portfolios-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.portfolios-card .card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.portfolios-card .card-body {
    padding: 2rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    animation: slideUp 0.6s ease-out;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2);
}

.portfolio-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.portfolio-image-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.portfolio-content {
    padding: 1.25rem;
}

.portfolio-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.portfolio-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.portfolio-date {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-view-btn {
    background: #6366f1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-view-btn:hover {
    background: transparent;
    color: #6366f1;
    border-color: #6366f1;
    transform: translateY(-2px);
}

/* Portfolio Stats Card */
.stats-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
}

.stats-card .card-header {
    border-bottom: none;
    padding: 1.25rem;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stat-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #f8fafc;
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.stat-item:last-child {
    border-bottom: none;
}

/* Empty State */
.portfolio-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.portfolio-empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.portfolio-empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.portfolio-empty-state .btn {
    border-radius: 10px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

/* Animation Delays for Portfolio Items */
.portfolio-item:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-item:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* View All Button */
.portfolio-view-all {
    text-align: center;
    margin-top: 2rem;
}

.portfolio-view-all .btn {
    border-radius: 12px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    transition: all 0.3s ease;
}

.portfolio-view-all .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Stats Colors */
.stat-item .text-primary {
    color: #6366f1 !important;
}

.stat-item .text-success {
    color: #10b981 !important;
}

.stat-item .text-info {
    color: #06b6d4 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .portfolios-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolios-section {
        margin-top: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .portfolio-image-container {
        height: 160px;
    }

    .portfolio-content {
        padding: 1rem;
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolios-card .card-header {
        padding: 1.25rem;
    }

    .portfolios-card .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-image-container {
        height: 180px;
    }

    .portfolio-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .portfolio-view-btn {
        width: 100%;
        text-align: center;
    }

    .portfolio-empty-state {
        padding: 2rem 1rem;
    }

    .portfolio-empty-state i {
        font-size: 3rem;
    }
}

/* Enhanced Hover Effects */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Compact User Profile Section */
.compact-user-profile {
    background: white;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    max-width: 800px;
    /* Limit width */
    margin: 0 auto;
    /* Center it */
}

.compact-user-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1) !important;
}

.compact-profile-content {
    padding: 0.75rem 1rem;
}

/* Compact Avatar */
.compact-avatar {
    flex-shrink: 0;
}

.compact-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #6366f1;
}

.compact-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 2px solid #6366f1;
}

/* Compact User Info */
.compact-user-info {
    flex: 1;
    min-width: 0;
    /* Prevent overflow */
}

.compact-username {
    color: #6366f1;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-user-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.compact-badge {
    background: #6366f1;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.compact-bio {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Compact Button */
.compact-portfolio-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.compact-portfolio-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .compact-user-profile {
        max-width: 100%;
        /* Full width on mobile */
    }

    .compact-profile-content {
        padding: 0.6rem 0.8rem;
    }

    .compact-profile-content .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .compact-user-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .compact-portfolio-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
    }

    .compact-avatar {
        margin-right: 0.6rem !important;
    }

    .compact-bio {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .compact-profile-content {
        padding: 0.6rem;
    }

    .compact-username {
        font-size: 0.9rem;
    }

    .compact-avatar-img,
    .compact-avatar-placeholder {
        width: 35px;
        height: 35px;
    }

    .compact-bio {
        font-size: 0.7rem;
    }

    .compact-portfolio-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}

/* Animation */
@keyframes fadeInCompact {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compact-user-profile {
    animation: fadeInCompact 0.3s ease-out;
}