/* Public Profile Styles */
.public-profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Profile Header */
.public-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    position: relative;
}

.profile-header-action {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.follow-btn {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-joined {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0;
}

.profile-joined i {
    margin-right: 0.5rem;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-count {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: #667eea;
    font-size: 1.7rem;
}

/* Binders Grid */
.binders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.binder-card-public {
    background: white;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.binder-card-public.has-cover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 20px rgba(0,0,0,0.25);
}

.binder-card-public.has-cover .binder-name,
.binder-card-public.has-cover .card-count-text,
.binder-card-public.has-cover .card-count-item i,
.binder-card-public.has-cover .binder-header .badge {
    color: #fff;
}

.binder-card-public.has-cover .binder-header .badge {
    background-color: rgba(255, 255, 255, 0.18);
}

.binder-card-public.has-cover .card-count-item i {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.binder-card-public.has-cover .binder-header {
    color: #fff;
}

/* Progress Section */
.progress-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.label-text {
    font-weight: 500;
    color: #666;
}

.progress-info {
    font-weight: 600;
    color: #667eea;
    font-size: 0.85rem;
}

.progress {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* Card Count Section */
.card-count-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.card-count-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #333;
}

.card-count-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.card-count-text {
    font-weight: 600;
    color: #667eea;
}

/* Empty State */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.empty-state-content {
    text-align: center;
}

.empty-state-content i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-content p {
    color: #999;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Favorites Section */
.favorites-section {
    margin-top: 2rem;
}

.favorites-group {
    margin-bottom: 3rem;
}

.favorites-serie-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorites-serie-title i {
    color: #667eea;
    font-size: 1.7rem;
}

.favorites-set-group {
    margin-bottom: 2rem;
}

.favorites-set-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.favorites-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.favorite-card-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.favorite-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.favorite-card-image {
    width: 100%;
    aspect-ratio: 2/3;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-card-info {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.favorite-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.favorite-card-number {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin-top: 0.5rem;
}

.empty-favorites {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: #999;
}

.empty-favorites i {
    font-size: 3rem;
    color: #ccc;
    display: block;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .public-profile-container {
        padding: 1rem;
    }

    .public-profile-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .profile-header-action {
        position: static;
        margin-top: 1rem;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .profile-header-content {
        align-items: flex-start;
    }

    .profile-avatar i {
        font-size: 4rem;
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .binders-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .binder-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .binder-header .badge {
        align-self: flex-start;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .favorites-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .public-profile-header {
        padding: 1.5rem 1rem;
    }

    .profile-avatar i {
        font-size: 3rem;
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .binder-card-public {
        padding: 1.5rem;
    }

    .binder-name {
        font-size: 1rem;
    }
}
